Computer Science, asked by pyaesoneaung9009, 9 months ago

write a python code that prints your full name and your birthday as separate strings

Answers

Answered by raotd
0

Answer:

PYTHON PROGRAM

Answer:

a=input("Enter your name:")

b=input("Enter your birthday:")

print("Your name:",a)

print("Your mother's name:",b)

output:

Enter your name:abc

Enter your birthday:00/00/00

Your name: abc

Your mother's name: 00/00/00

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 birthday .

#print("Your name:",a)

print("Your birthday:",b), here we write a syntax to print the value 'a' and 'b' to the output

TO KNOW MORE ABOUT PYTHON PROGRAM

1) Write a Python program to calculate the amount (in Rs) each of them need to put in for the complete (both to and fro) journey.

The program should also display True, if the amount to be paid by each person is divisible by 5, otherwise it should display False. (Hint: Use the relational operators in print statement.)

Assume that mileage of the vehicle, amount per litre of fuel and distance for one way are given.

brainly.in/question/11759530

2) Write a Python program to find person is senior citizen or not input page​

Explanation:

Similar questions