LearnPy Hub
← Pandas: DataFrames problems
Easy

Two Columns

Select the columns name and credits with df[['name', 'credits']] and print each row as name credits.

Input

Lines 'name dept cgpa credits', then END.

Output

One line per student.

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 120
Rafi 98
Sara 132
Tuhin 110
Nadia 125

Sample 2

Input
A CSE 3.00 100
END
Output
A 100
solution.py
Output appears here
Two Columns · Python practice problem · LearnPy Hub