0

Does input work with if

please give an example

19th Aug 2016, 5:37 PM
Neel Raut
Neel Raut - avatar
4 Answers
+ 1
myName = input ("Enter a name: ") if myName == "DePjoez": print ("Your awesome!!!") elif myName == "Neel Raut": print ("This is how you do it!!!") else: print ("welcome...")
20th Aug 2016, 9:05 AM
Tom Post
Tom Post - avatar
0
Can u pls elaborate with example. I tried this but came up with exception. s=5; d=input( if (s){ print ("true") }else { print ("False") } ); 🙁
19th Aug 2016, 8:43 PM
Surya Deep Mishra
Surya Deep Mishra - avatar
0
Thanks for the help
20th Aug 2016, 9:07 AM
Neel Raut
Neel Raut - avatar
0
yess
16th Sep 2016, 1:21 PM
paul mwengei
paul mwengei - avatar