Home / Python Tips Generated By ChatGPT / Using * for Repetitive Sequences in Python Create a list or string with repeated elements. Source Code zeros = [0] * 5 print(zeros) repeat_str = "A" * 10 print(repeat_str)