0xCor3

Untitled

May 7th, 2021 (edited)
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data