import random print("\tWelcome to 'Guess MY Number'!") print("\n I'm thinking of a number between 1 and 100.") print("Try to guess as little as possible.") the_number = random.randint(1,100) guess= True Tries = 0 while guess !=the_number: guess = (input("Take a guess")) try: guess = int(guess) except VauleError: print("The was not an integer." else: if guess<1 or guess > 100: print("That was not a integer.") elif guess > the_number: print("Lower...") elif guess < the_number: print("Higher...") tries += 1 print("You guessed it! The number was", the_number) print("And ou only took", tries,"tries.")
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE