Computer Science, asked by dove74, 1 year ago

Write a code in python to display your name and age.​

Answers

Answered by as514113
0
algorithm :

input name
input age
print name
print age

Answered by AskewTronics
0

Python program and the output is described below for the above question:

Output:

If the user enter as "Go" and 4, then the output will be "Your name is: GO and your age is:  4".

Explanation:

print("Your name is: "+input("Enter your name: ")+" and your age is: ",input("Enter your age:  ")) #input and print statement which take the input and print the name and age.

Code Explanation :

  • The above one-line code holds the two states the print and the input statement which is written in the python language.
  • The input statement instructs the user for the input and takes the input for name and age.
  • Then that input value is rendered by the help of print statements with instructing the name is this and age is this.
  • This will render two-time input one by one instructing the user to give the input.

Learn more :

  • Python : https://brainly.in/question/14689905
Similar questions