Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp = []
- tampung = []
- for x in range(1, 101):
- if len(temp) == 40:
- # print(len(temp))
- tampung.append(temp)
- if (str(input("Lanjut ? ")) == "y"):
- print("Lanjutin")
- temp = []
- temp.append(x)
- else:
- print(x)
- temp.append(x)
- tampung.append(temp)
- print(tampung)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement