Python codecademy student Becomes the Teacher 9.How is Everybody doing?

1.最后,print out the result of calling get_class_average with your students list.Your students should be[lloyd,alice,tyler].
2.然后,print the result of get_letter_grade for the class's average.

students = [lloyd,alice,tyler]
results = []
def get_class_average(students):
for student in students:
results.append(get_average(student))
print get_class_average(results)
print get_letter_grade(get_class_average(results))

8.part of the whole
def get_class_average(students):
results = []
for student in students:
results.append(get_average(student))
return average(results)
1.定义get_class_average,变量students
2.空列表results

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,828评论 0 23
  • 今天看了职来职往,非常静距离,鲁豫有约,天天向上,非诚勿扰,每个人都在为自己的命运打拼,可以说都在追梦的路上,on...
    燊儿阅读 115评论 0 0
  • [TOC] 使用 systemd 中的定时器执行定时任务 https://linux.cn/article-399...
    codekissyoung阅读 198评论 0 0