Advertisement
pacho_the_python

Untitled

Jan 21st, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. num = int(input())
  2. counter_i = 0
  3. counter_j = 0
  4. counter_k = 0
  5. for i in "abcdefghijklmnopqrstuvwxyz":
  6.     counter_i += 1
  7.     if counter_i > num:
  8.         break
  9.     for j in "abcdefghijklmnopqrstuvwxyz":
  10.         counter_j += 1
  11.         if counter_j > num:
  12.             counter_j = 0
  13.             break
  14.         for k in "abcdefghijklmnopqrstuvwxyz":
  15.             counter_k += 1
  16.  
  17.             if counter_k > num:
  18.                 counter_k = 0
  19.                 break
  20.             print(f"{i}{j}{k}")
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement