0

I am attempting to have a string output a name and the person's grade: name grade

But if the student's name length is different, I want to get the same spacing between the rows..

The goal:
Name: billy     Grade: 91

Name: Johnson   Grade: 79

The output:
Name: billy     Grade: 91

Name: Johnson     Grade: 79
Mr. Fish
  • 1
  • 1
  • Maybe an answer to one of these questions can help: https://stackoverflow.com/questions/4893313/how-can-i-left-align-strings-using-string-format https://stackoverflow.com/questions/35643597/how-can-i-neatly-align-the-output-of-string-variables – Old Dog Programmer Dec 14 '22 at 02:55

0 Answers0