Home > database >  .
.

Time:10-25

Python basic syntax
1.1 user interaction and comments
Interaction:

Name=input (" What 's your name: ")
Print (" My name is: "+ name)


Results:

Execute the script will find the program will continue to go down again after waiting for you input your name,
Allows users to enter multiple information, as follows:

Name=input (" What 's your name: ")
Age=input (" How old are you: ")
Hometown=input (" Where is your hometown: ")
Print (" Hello ", the name, "your motorcycle",)

CodePudding user response:

Print (" Hello ", the name, ", your are from ", hometown)
A Chinese brackets, give you change the