CJCoding With Joseph
15free / daySign inCreate account

Aligned Roster Rows

Print two lines of output, one per declared student, as aligned columns: the name left-aligned in a field 10 characters wide, immediately followed by the age right-aligned in a field 4 characters wide, using the alignment specs {name:<10} and {age:>4} inside an f-string (with the variable names declared here). Input: none; the values are fixed in the code.

Expected Output:

Giselle     21
Bo          19

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.