+ 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 ??

30th Jun 2019, 1:58 PM
Victor
Victor - avatar
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
30th Jun 2019, 2:22 PM
Nwankwo Valentine
Nwankwo Valentine - avatar
+ 2
name = input("Please enter your name: ") print("Hello "+name+"!") Example: Please enter your name: James Hello James!
30th Jun 2019, 2:24 PM
Paul Grasser
Paul Grasser - avatar