What you need here is to print space 70 times minus the length of your string, then your string.
print (' '*(70-len(s))+s)
4
solved A python’s beginner exercise [closed]
What you need here is to print space 70 times minus the length of your string, then your string.
print (' '*(70-len(s))+s)
4
solved A python’s beginner exercise [closed]