+ 3

please help me find the error in the code :

names = [ 'Balaji', 'Amit' ] assignments = [1,2] grades = ['A','B'] # message string to be used for each student # HINT: use .format() with this string in your for loop i=0 while i<len(assignments): message = "Hi {},\n\nThis is a reminder that you have {} assignments left to \ submit before you can graduate. You're current grade is {} and can increase \ to {} if you submit all assignments before the due date.\n\n".format(names[i],assignments[i],grades[i]) i+=1 print(message)

26th Dec 2018, 2:03 AM
Balaji Pathange
Balaji Pathange - avatar
5 Answers
+ 6
Seemed that you tried to have 4 {} but only 3 format.
26th Dec 2018, 2:36 AM
ShortCode
+ 9
I agree. I assume that 4th {} is grades[i]+1. At least that's how my school works.
26th Dec 2018, 3:01 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
https://code.sololearn.com/c3H7r12FUJJm/?ref=app This work but you need to change the task and the message to students.
26th Dec 2018, 4:34 AM
Vitalij Bredun ♡ Python Petersburg
Vitalij Bredun ♡ Python Petersburg - avatar
0
https://code.sololearn.com/c3H7r12FUJJm/?ref=app Upd grades_std = ['A','B'] # for these students grades = {'A':'B','B':'C'} # if C max
26th Dec 2018, 2:43 PM
Vitalij Bredun ♡ Python Petersburg
Vitalij Bredun ♡ Python Petersburg - avatar
0
am a beginner in python Where can begin from now send me links where I can start from
28th Dec 2018, 8:56 PM
Rallen Derrick
Rallen Derrick - avatar