Conditional statement - what did I do wrong | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Conditional statement - what did I do wrong

if rentalCode == "B" or rentalCode == "D": rentalPeriod = int(input("Number of Days Rented:\n") elif rentalCode == "W": rentalPeriod = int(input("Number of Weeks Rented:\n")

6th Mar 2020, 5:22 PM
Anna
3 Antworten
+ 1
You have missing parentheses on reading input for <rentalPeriod> rentalPeriod = int(input(...)) # <- missing ')'
6th Mar 2020, 5:40 PM
Ipang
+ 1
Wow... Spot on. Thank you so much. ­čî║­čî╝­čîĚ
6th Mar 2020, 5:43 PM
Anna
0
No problem BTDT ­čśü ­čĹî
6th Mar 2020, 5:47 PM
Ipang