If...else statement | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

If...else statement

age = input ("Enter your age" ) if age ›= 18: print " Eligible to vote" else: print " Not eligible to vote "

13th Nov 2018, 3:48 PM
Nitin Heda
Nitin Heda - avatar
3 Antworten
+ 6
If you don't want to reply your question, we can not help you.
13th Nov 2018, 4:19 PM
program
program - avatar
+ 1
What's your question.
13th Nov 2018, 4:01 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
age = int (input ("Enter your age")) if age >= 18: print (" Eligible to vote") else: print (" Not eligible to vote ")
13th Nov 2018, 4:11 PM
Solo
Solo - avatar