Tell us what’s happening:
Describe your issue in detail here.
Hello to everyone.
I am stuck on the final project because I can’t pass all the tests that belong to the script, I’m sure that my script is doing everything asked for, except for the " If anything other than an integer is input as a guess, it should print That is not an integer, guess again:" (but I know what to modify).
I drop my GitHub repo with the script and the database dump. I would appreciate any help.
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.52
Challenge: Number Guessing Game - Build a Number Guessing Game
I think the main issue is how user input is handled. Try printing the text and reading input in separate lines.
Also are you sure the instructions require user name to have at least 22 letters?
Thanks for your help, I’ll be trying that. Honestly, I’m not sure, I didn’t fully understand that task so I looked if someone had that issue and I found that that is the way they solved it.
Enter your username:
me
Welcome, me! It looks like this is your first time here.
Guess the secret number between 1 and 1000:
500
It's higher than that, guess again:
750
It's lower than that, guess again:
675
It's lower than that, guess again:
600
It's lower than that, guess again:
550
It's lower than that, guess again:
525
It's lower than that, guess again:
513
It's higher than that, guess again:
519
It's lower than that, guess again:
516
It's higher than that, guess again:
518
You guessed it in 9 tries. The secret number was 518. Nice job!
I’m counting here 10 attempts, but script writes 9.