Any number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Any number

User_input = str(input("Please enter your name:")) if User_input == "123": print("invalid username") #if the user input 123 then the output will be invalid username, but if the user input another number, the output will be please enter your name! what about the raise error?

16th May 2018, 1:13 AM
Medo Hamdani
Medo Hamdani - avatar
4 Answers
0
the point is to get a normal working code.
16th May 2018, 1:13 AM
Medo Hamdani
Medo Hamdani - avatar
0
is it java or c++
16th May 2018, 1:55 AM
Rajeeb
16th May 2018, 6:24 AM
Medo Hamdani
Medo Hamdani - avatar
0
Tamra what do you think?
16th May 2018, 6:26 AM
Medo Hamdani
Medo Hamdani - avatar