Advertisement
0xCor3

Untitled

May 7th, 2021 (edited)
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. temp = []
  2. tampung = []
  3. for x in range(1, 101):
  4.     if len(temp) == 40:
  5.         # print(len(temp))
  6.         tampung.append(temp)
  7.         if (str(input("Lanjut ? ")) == "y"):
  8.             print("Lanjutin")
  9.         temp = []
  10.         temp.append(x)
  11.     else:
  12.         print(x)
  13.         temp.append(x)
  14. tampung.append(temp)
  15. print(tampung)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement