i wanna add an extra string when there is only 1 attempt left
def guess_the_number():
minimum_number = 1
maximum_number = 100
print("Welcome to this super duper funny and professionaly coded Guess The Number game! :D\n")
print(f"choose a super duper cool number between {minimum_number} and {maximum_number}\n")
secret_number = random.randint(minimum_number,maximum_number)
attempts = 0
max_attempts = 6
while attempts < max_attempts:
try:
chosen_number = int(input(f"Choose a random number between {minimum_number} and {maximum_number}: \n"))
if chosen_number < 1 or chosen_number > 100:
print("this isn't a normal number u numbnut. Are you like stupid or something... try again.\n")
continue
attempts += 1
if chosen_number < secret_number:
print("choose a higher number you knucklehead!")
print(f"you wont make it because you suck, but still... you have {max_attempts - attempts} attempts left.\n")
elif chosen_number > secret_number:
print("its a lower number you goofball!")
print(f"you wont make it because you suck, but still... you have {max_attempts - attempts} attempts left.\n")
elif . . .. . . .anitamaxwin
priint u suck
else:
if attempts == (max_attempts - 1):
print(f"wow you are so fcking smart you guessed {secret_number} in {attempts} tries and had {6 - attempts} more try\n")
else:
print(f"wow you are so fcking smart you guessed {secret_number} in {attempts} tries and had {6 - attempts} more tries\n")
break
except ValueError:
print("are you stupid? is that a number?\n")
else:
print(f"\nyou fcking suck the number was {secret_number}.\n")
guess_the_number()