write a program that make with 42 repeated 42 times in python

You can achieve this by simply printing the concatenated string "42" with a loop that runs 42 times. Here's the code:

main.py
string = ""
for i in range(42):
    string += "42"

print(string)
66 chars
6 lines

This will output: 424242424242424242424242424242424242424242424242424242424242424242424242424242

related categories

gistlibby LogSnag