just another code I made practicing, I will now try to read some documentation about the urllib library and try to make some different scripts, until now I only was able to make simple scripts like this one.
PHP Code
<?php
import random
import time
import sys
for i in "GUESSING GAME CODED BY MALENTOR #3 SCRIPT EVER MADE":
time.sleep(0.08 )
sys.stdout.write(i)
sys.stdout.flush()
level_choice = int(input("""
1 = EASY MODE -> (0 - 10)
2 = MEDIUM MODE -> (0 - 50)
3 = EXPERT MODE -> (0 - 100)
INSERT YOUR MODE: """))
easy = random.randint(0,10)
medium = random.randint(0,50)
expert = random.randint(0,100)
if level_choice == 1:
while True:
# CHEATS ON -> print(easy)
userGuess = int(input("Your guess (0-10): "))
if userGuess < easy:
print("The number you entered is LOWER than the random one.")
elif userGuess > easy:
print("The number you entered is HIGHER than the random one")
else:
print("CONGRATULATIONS, NUMBER HAS BEEN GUESSED")
break
elif level_choice == 2:
while True:
# CHEATS ON -> print(medium)
userGuess = int(input("Your guess (0-50): "))
if userGuess < medium:
print("The number you entered is LOWER than the random one.")
elif userGuess > medium:
print("The number you entered is HIGHER than the random one")
else:
print("CONGRATULATIONS, NUMBER HAS BEEN GUESSED")
break
elif level_choice == 3:
while True:
# CHEATS ON -> print(expert)
userGuess = int(input("Your guess (0-100): "))
if userGuess < expert:
print("The number you entered is LOWER than the random one.")
elif userGuess > expert:
print("The number you entered is HIGHER than the random one")
else:
print("CONGRATULATIONS, NUMBER HAS BEEN GUESSED")
break



![[Image: 5BgQiIm.gif]](https://i.imgur.com/5BgQiIm.gif)