Skip to content
Sign upLog in
← Back to Community

Amazing Hacker prank in Python 3

Profile icon
ParthChawla

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

Voters
Profile icon
PradanaSherly
Profile icon
GauthierStrich
Profile icon
charleshei25
Profile icon
Leroy01010
Profile icon
DungeonMaster00
Profile icon
ParthChawla
Comments
hotnewtop
Profile icon
ItamarCohen28

It's just erroring, fix it

Profile icon
omarmithril

NOOB so ez

Profile icon
SteveyMcSteve01

for _ in range(1000):
for _ in range(randint(0, 60)):
print(randint(0, 1), end="")
print()

Profile icon
RishiMohanty

hmmm it doesnt work

Profile icon
Leroy01010

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

(wait no it's this that did )

i was doing something important

Profile icon
ParthChawla

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

Profile icon
Leroy01010

ik i did it on them XD

@ParthChawla

Profile icon
CodeLongAndPros

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

Profile icon
ParthChawla

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

Profile icon
CodeLongAndPros

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

Profile icon
RepairBoy

@ParthChawla
can't prank my friends

Profile icon
ParthChawla

If it works then please upvote

Profile icon
DungeonMaster00

give me the link to the python ide

Profile icon
DungeonMaster00

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

Profile icon
ParthChawla

guys please try this on cmd by the instructions provided

Profile icon
ParthChawla

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

Profile icon
CodeLongAndPros

Also why do you print the same thing 1500 times?

Profile icon
Bookie0

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

Profile icon
CodeLongAndPros

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

Profile icon
ParthChawla

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

Profile icon
CodeLongAndPros

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

Profile icon
ParthChawla

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

Profile icon
CodeLongAndPros

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

Profile icon
ParthChawla

@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

Profile icon
Bookie0

Screen Shot 2020-09-04 at 12.49.09 PM

Profile icon
ParthChawla

@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