Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import math
- namelist = ['a','b','c']
- values = []
- for name in namelist:
- value = input(name + "君の点数[点]:")
- values.append(int(value))
- print("3人の最高点数:" + str(max(values)))
- print("3人の最低点数:" + str(min(values)))
- print("3人の合計点数:" + str(sum(values)))
- print("3人の平均点数:" + str(math.floor(sum(values)/3*100)/100) )
Advertisement
Add Comment
Please, Sign In to add comment