Download mod.py from DJJAI/AirshIptest: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/DJJAI/AirshIptest/resolve/main/mod.py
- Command line
-
hf download hf://DJJAI/AirshIptest/mod.py
-
curl -L -o mod.py https://huggingface.co/DJJAI/AirshIptest/resolve/main/mod.py
392 Bytes
| import random | |
| import time | |
| numbers = list(range(20)) | |
| while True: | |
| num = random.choice(numbers) | |
| if num in [0,2, 4, 6, 8,10,12,14,16,18]: | |
| print(num) | |
| print("punishment given") | |
| numbers.remove(num) | |
| else: | |
| print(num) | |
| print("reward given") | |
| numbers.append(num) | |
| time.sleep(1) | |
| if not numbers: | |
| numbers = list(range(20)) |