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