This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import random | |
async def main(): | |
progress = 0 | |
while progress < 100: | |
is_quick = True if random.random() < 0.9 else False | |
await asyncio.sleep(random.randint(1,10 if is_quick else 50)/100) | |
progress = progress + 1 | |
print(f"Hacking Nasa ({progress}%)") |