+ 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)
5 Respostas
+ 6
Seemed that you tried to have 4 {} but only 3 format.
+ 9
I agree. I assume that 4th {} is grades[i]+1. At least that's how my school works.
+ 2
https://code.sololearn.com/c3H7r12FUJJm/?ref=app
This work but you need to change the task and the message to students.
0
https://code.sololearn.com/c3H7r12FUJJm/?ref=app
Upd
grades_std = ['A','B'] # for these students
grades = {'A':'B','B':'C'} # if C max
0
am a beginner in python
Where can begin from now
send me links where I can start from