Advertisement
Spocoman

02. Multiplication Table

Dec 29th, 2021 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. for i in range(1, 11):
  2.     for j in range(1, 11):
  3.         print(f"{i} * {j} = {i * j}")
  4.  
  5. ИЛИ:
  6.  
  7. print(*(f"{i} * {j} = {i * j}" for i in range(1, 11) for j in range(1, 11)), sep='\n')
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement