You must log in or register to comment.
Perfectly safe on Windows, too. The remove() function doesn’t work on directories.
Remove-Item -LiteralPath "C:" -Force -Recurse
You call that russian roulette? This is real russian roulette. Dying is a 1/6 probability.
#!/usr/bin/env python3 import random barrel = [0, 0, 0, 0, 0, 1] random.shuffle(barrel) print("Russian Roulette") for i in barrel: input("Press enter to shoot") if i == 1: print("You are dead.") exit() else: print("Phew. You survived.")
Let’s all love lain.
isn’t
randint
range inclusive? thusrandom.randint(0, 6) == 1
has a 1 in 7 chance, not 1 in 6. Most revolvers, assuming this is emulating russian roulette, have 6 cylinders, not 7.