Python Input Function with examples

Spread the love

Def: python input function is used to get the data from the user and save it in a variable. We can use that variable information. The input variable datatype is string.

Example Program:

x= input("Enter your first name")

y= input("Enter your last name")

z=x+y

print("Your full name is ",z)

 

Output:

Enter your first name : python
Enter your last name : tutorial
Your full name is  pythontutorial

 

 

 

 

 

admin

admin

Leave a Reply

Your email address will not be published. Required fields are marked *