Learn to Code via Tutorials on Repl.it!

← Back to all posts
Amazing Hacker prank in Python 3
ParthChawla (14)

So here is a prank below. This only works in original Python IDE.
Please don't run it on repl.it as if you will try to run then the server might crash. Copy it and paste it in Python IDE and then run it. For a spice in it run the command prompt, Enter:
color 0A
and
title hacker screen
then
*Yourfilename*.py
It will run and you will see the fun :)
Bye, enjoy

Comments
hotnewtop
Leroy01010 (411)

i shut down my computer!!!!!!!

(wait no it's this that did )

i was doing something important

ParthChawla (14)

As you can see it is a amazing prank for your friends :)

CodeLongAndPros (1622)

@Leroy01010 Huh, his code doesn’t work for me at all. Ofc it’s because of non-portable code, but still.

ParthChawla (14)

@CodeLongAndPros, check out the new version now:) it is easy and portable

CodeLongAndPros (1622)

@ParthChawla It’s not, actually, at least in the post.

ParthChawla (14)

If it works then please upvote

DungeonMaster00 (190)

give me the link to the python ide

DungeonMaster00 (190)

lol ima make a repl and run os.system("shutdown /s /t 1")

ParthChawla (14)

guys please try this on cmd by the instructions provided

ParthChawla (14)

This is for extremely begginers who don't know how to perform loops. I will post a advanced version of this sooner or later :)

CodeLongAndPros (1622)

Also why do you print the same thing 1500 times?

Bookie0 (6248)

also lines 41 to the end, you can just do while True: then underneath it all the print 010101011101010 etc.

CodeLongAndPros (1622)

zsh: command not found: color, and title returns 0.

ParthChawla (14)

@CodeLongAndPros, If you are having problem please remove the color variable

CodeLongAndPros (1622)

@ParthChawla I’m also getting:
shutdown: option not recognized: ‘/s’

ParthChawla (14)

@CodeLongAndPros, Please try this on cmd on your PC by the instuctions provided

CodeLongAndPros (1622)

@ParthChawla Your code seems to be non-portable, I’ve tried Bash and Zsh, it’s not registering in the path.

ParthChawla (14)

@CodeLongAndPros, If still you have a error then I can't help it. You have to do something or you can wait for the advanced version

ParthChawla (14)

@Bookie0, Please run this on original python IDE and then you will see after printing bunch of 1's and 0's the PC will shutdown