You can do it simply like this:
In Python 3.x :
print(" "*(70 - len(s)) + s)
And like this in Python 2.x :
print " "*(70 - len(s)) + s
3
solved Exercises 3.3 from Think Python [closed]
You can do it simply like this:
In Python 3.x :
print(" "*(70 - len(s)) + s)
And like this in Python 2.x :
print " "*(70 - len(s)) + s
3
solved Exercises 3.3 from Think Python [closed]