LearnPy Hub
← Pandas: DataFrames problems
Medium

Calculated Column

Add a column percent = cgpa / 4 × 100 rounded to 1 decimal. Print each name and percent.

Input

Lines 'name dept cgpa credits', then END.

Output

Lines.

Sample 1

Input
Mim CSE 3.82 120
Rafi EEE 3.41 98
Sara CSE 3.95 132
Tuhin BBA 3.60 110
Nadia CSE 3.71 125
END
Output
Mim 95.5
Rafi 85.2
Sara 98.8
Tuhin 90.0
Nadia 92.8

Sample 2

Input
A CSE 3.00 100
END
Output
A 75.0
solution.py
Output appears here
Calculated Column · Python practice problem · LearnPy Hub