0

Beginner - pls help me fix my Study Progress program

I’m getting a syntax error around the last block, I know it’s something basic but I can’t find it.. please help me spot the errors!! date = int(input("What's today's date?")) days = date - 22 lessons = days * 7 done = int(input("How many lessons complete?") print("You've been practicing for " + days + "days!") ((After I fix this output, I’m going to add code so it compares lessons completed to the expected total given how many days of practice, and outputs whether I’m on track and by how much... that’s why I’ve defined a variable for #of completed lessons)) Thanks everybody! 🙏🏼

26th Nov 2020, 3:21 PM
Jennywren
Jennywren - avatar
5 ответов
+ 1
Input("how many...") You are missing a )
26th Nov 2020, 3:53 PM
Angelo
Angelo - avatar
0
Thanks so much for the reply! I’ll fix that!!
26th Nov 2020, 3:55 PM
Jennywren
Jennywren - avatar
0
Jennywren , in print function change days to str(days), because integer cannot be concatenated to strings.
26th Nov 2020, 3:55 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
TheWh¡teCat 🇧🇬 That’s what I understood, but i was getting an error - I think because I had the parenthesis around (str) instead of days 😅 - Thank you!!
26th Nov 2020, 3:59 PM
Jennywren
Jennywren - avatar
0
You are welcome 🐱, Jennywren
26th Nov 2020, 3:59 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar