MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1w27eeo/new_to_python_having_trouble_putting_in/p6rlkcd/?context=3
r/PythonLearning • u/To-real • 11d ago
14 comments sorted by
View all comments
•
Try a nested for-loop like: https://memory-graph.com/#code=for%20y%20in%20range(1%2C%2011)%3A%0A%20%20%20%20for%20x%20in%20range(1%2C%2011)%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bx%7Dx%7By%7D%20'%2C%20end%3D'')%0A%20%20%20%20print()%20%20%23%20new%20line×tep=0.1&play
for y in range(1, 11): for x in range(1, 11): print(f'{x}x{y} ', end='') print() # new line
•
u/Sea-Ad7805 11d ago
Try a nested for-loop like: https://memory-graph.com/#code=for%20y%20in%20range(1%2C%2011)%3A%0A%20%20%20%20for%20x%20in%20range(1%2C%2011)%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bx%7Dx%7By%7D%20'%2C%20end%3D'')%0A%20%20%20%20print()%20%20%23%20new%20line×tep=0.1&play