LearnPy Hub
← File Handling problems
Medium

Tab-Separated File to a Table

Read n lines of name,score, write them to scores.tsv with a tab instead of the comma. Read the file back, split on tabs and print each row as the name left-aligned in 10 characters and the score right-aligned in 5.

Input

n, then n lines.

Output

n lines.

Sample 1

Input
2
Mim,80
Rafi,7
Output
Mim          80
Rafi          7

Sample 2

Input
1
A,100
Output
A           100
solution.py
Output appears here
Tab-Separated File to a Table · Python practice problem · LearnPy Hub