Amazing Hacker prank in Python 3
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
for _ in range(1000):
for _ in range(randint(0, 60)):
print(randint(0, 1), end="")
print()
hmmm it doesnt work
As you can see it is a amazing prank for your friends :)
ik i did it on them XD @ParthChawla
@Leroy01010 Huh, his code doesn’t work for me at all. Ofc it’s because of non-portable code, but still.
@CodeLongAndPros, check out the new version now:) it is easy and portable
@ParthChawla It’s not, actually, at least in the post.
@ParthChawla can't prank my friends
If it works then please upvote
give me the link to the python ide
lol ima make a repl and run os.system("shutdown /s /t 1")
guys please try this on cmd by the instructions provided
This is for extremely begginers who don't know how to perform loops. I will post a advanced version of this sooner or later :)
Also why do you print the same thing 1500 times?
also lines 41 to the end, you can just do while True:
then underneath it all the print 010101011101010 etc.
zsh: command not found: color
, and title
returns 0.
@CodeLongAndPros, If you are having problem please remove the color variable
@ParthChawla I’m also getting:
shutdown: option not recognized: ‘/s’
@CodeLongAndPros, Please try this on cmd on your PC by the instuctions provided
@ParthChawla Your code seems to be non-portable, I’ve tried Bash and Zsh, it’s not registering in the path.
@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
@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
It's just erroring, fix it