Repeat String for Given Number of Times using Python June 23, 2021 Python 0 Comments 266 Views Multiplication operator text = '+-' n = 5 result = text * n print(result) # +-+-+-+-+-
Leave a Comment
Cancel reply