Computer Science, asked by aswathyr899, 10 months ago

python command /instruction to display your name​

Answers

Answered by kartikey3753
1

Answer:

Hey mate here is your answer

Name = float ("My Name ")


aswathyr899: thanks
kartikey3753: welcome
Answered by AskewTronics
1

Below are the command or program to display your name in python:

Explanation:

name= input("Enter your name")#user input the name by the help of this.

print("Your name is: "+name)#Then the name of the user is diplayed here.

Output:

  • If the user input as "Jon", then the output is "Your nme is : Jon".
  • If the user input as "Go", then the output is "Your nme is : Go".

Code Explanation:

  • The above code is in python language, in which the first line is used to render a message to the user, take the input from the user and store it into the name variable.
  • Then the second line is used to print the value of name by the help of print function.

Learn More:

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