Advertisement
EmilPetkov

multiplication_table

Jun 26th, 2022
781
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for first_number in range(1, 11): # or range(1, 10 + 1)
  2.     for second_number in range(1, 12): # or range(1, 11 + 1)  ## every 11 line print empty line
  3.         result = first_number * second_number
  4.  
  5.         if second_number > 10:
  6.             print()
  7.         else:
  8.             print(f'{first_number} * {second_number} = {result}')
  9.  
Advertisement
RAW Paste Data Copied
Advertisement