Advertisement
viligen

matrix_of_palindromes

Jan 21st, 2022
733
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rows, cols = [int(n) for n in input().split()]
  2.  
  3. for r in range(rows):
  4.     for c in range(cols):
  5.         print(f"{chr(97 + r)}{chr(97 + r + c)}{chr(97 + r)}", end=" ")
  6.     print()
  7.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement