Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def avg(*args):
- suma = 0
- ile = 0
- if args:
- for arg in args:
- suma+=arg
- ile+=1
- srednia = float(suma)/ile
- print(srednia)
- else:
- print 0
- avg(3,4,3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement