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