how to repeat a string n times in python with repeat Str code example Example: python string repeat n times print("Alice" * 5) # AliceAliceAliceAliceAlice