repeat a character n times python code example Example: python string repetition ^ "cow" * 3 'cowcowcow' "cow" * 10 'cowcowcowcowcowcowcowcowcowcow'