7 תשובות
שואל השאלה:
זה הקוד לבנתיים:

score = []
for i in range(50):
score_student= int(input("enter your score:"))
score.append(score_student)
total= 0
total= total + score_student
print("your avg score:",total/50)
totals_avg= total/50
אנונימית
יש לזה פקודה ייעודית, להדפיס את הערך הכי גבוה.
שואל השאלה:
מה הפקודה?
אנונימית
שואל השאלה:
ועכשיו רשום: עדכנו את הקוד כך שהוא יעבוד עד שיוכנס המספר -90
אנונימית
score = []
for i in range(50):
score_student=int(input("enter your score:"))
score.append(score_student)
print(f'your average grade: {sum(score)/50}\nyour max grade: {max(score)}')

#הנה הלינק לקוד:

https://wtools.io/paste-code/b9zf
אני מת הייתה לי גם את את המשימה הזו