--Originally published at TC1017 (Python3) – Titel der Website
The task was to write a program were the User have to guess the random number between 1 – 100. The random number is to be selected by the program.
After the guess the program have to tell you if your guess is to low or to high. And every time when the user do a guess, the sum of the guesses should be counted. When the User finally guesses the correct number, the program have to say that it is the correct number with the sum of the tryings.
The problem
Before a could start to write the program i had to inform myself for the issue with the random number. I never had a task like this with eclipse before. So I had no idea how program a random number between 1 – 100.
In my internet research i found a simple video for this problem.
The biggest challenge in this program was to build a loop while the user dont get the random number wich was chosen from the program.
The keyword while helped me a lot in this case. So i just choose a while loop wich i knew from Java programming.
The program