+ 1
How do I write a command in Phyton that allows the viewer to write in name ex: if name Victor=("Hello Victor")
Please help whats the command ??
3 Réponses
+ 2
name = input("pls enter your name?")
If not name .isdigit:
Print("welcome" + name)
in case user input integer instead of strings
+ 2
name = input("Please enter your name: ")
print("Hello "+name+"!")
Example:
Please enter your name: James
Hello James!