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! šš¼
5 Answers
+ 1
Input("how many...")
You are missing a )
0
Thanks so much for the reply! Iāll fix that!!
0
Jennywren , in print function change days to str(days), because integer cannot be concatenated to strings.
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!!
0
You are welcome š±, Jennywren