program to enter your name and mother's name and print them as separate strings.(PYTHON) pl answer quickly
Answers
Answer:
I don't know
Explanation:
pyth9n I know only OBasic
PYTHON PROGRAM:
Answer:
a=input("Enter your name:")
b=input("Enter your mother's name:")
print("Your name:",a)
print("Your mother's name:",b)
Output:
Enter your name: abc
Enter your Mother's name: xyz
Your name: abc
Your mother's name: xyz
Explanation:
In python program when a variable is declared or initialized it sets the variable into a default string data type unless we mention its data type.
At first step #a=input("Enter your name:")
, here we are initializing a is your name and b is your mother's name .
#print("Your name:",a)
print("Your mother's name:",b), here we write a syntax to print the value 'a' and 'b' to the output
TO KNOW MORE ON PYTHON PROGRAMS:
1) Write a code that prints your full name and your birthday as separate strings.
https://brainly.in/question/9900010
2)Write a code in python to display your name and age.
https://brainly.in/question/7453425