How do I make a string repeat itself for example:
instead of writing print (\'---------------------------\') how do I make it something like print (\'
print (\'---------------------------\')
print (\'
You were very close - it's
print "-" * 60
In Python 2, in Python 3, it's
print ("-" * 60)
You were so close:
>>> print('-' * 60) ------------------------------------------------------------
You need to multiply the str value, not the return value of the print() function.
str
print()