Use * to repeat a string:
dash = "-"
line = dash * 20 # "--------------------"
laugh = "ha"
big_laugh = laugh * 3 # "hahaha"
This is useful for creating separators, padding, or simple patterns. "=" * 50 gives you a nice line of equals signs for visual separation in output.
The number must be an integer. "x" * 3.5 fails because you can't repeat something . times. And negative numbers give an empty string: "x" * -1 equals "". Zero also gives empty: "x" * 0 equals "".