LearnPy Hub
← Classes & Objects problems
Easy

Student Average

Write a Student class with a name and a list of marks and a method average(). Read a line name m1 m2 ... and print NAME: AVG with 1 decimal.

Input

One line.

Output

One line.

Sample 1

Input
Mim 80 90 100
Output
Mim: 90.0

Sample 2

Input
Rafi 50
Output
Rafi: 50.0
solution.py
Output appears here
Student Average · Python practice problem · LearnPy Hub