#Guess the number game by Johnathan Millsap
import random
guessesTaken = 0
print('Hello! What is your name?')
myName = input()
number = random.randint(1, 100)
print('Well, ' + myName + ', I am thinking of a number between 1 and 100.')
print('Try to guess it!.')
while guessesTaken <= 3:
print('Take a guess.')
guesesTaken = guessesTaken + 1
guess = input()
guess = int(guess)
if guess < number:
print('Your guess is too low.')
if guess > number:
print('Your guess is too high.')
if guess == number:
break
if guess == number:
guesesTaken = str(guessesTaken)
print('Good job, ' + myName + '! You guessed my number ' + str(guessesTaken) + ' guesses!')
if guess != number:
number = str(number)
print('Nope. The number I was thinking of was ' + number)
I have the basis of the program, but I need to add more parameters like <=3 but instead >3 and <=7 and another that is just >7. How do I add this into my existing code? And my last question is how can I add in the choice for difficulty? Like if I type in 1 when prompted it will set the game parameters to 1-100 and if I type 2 it makes it 1-1000 and so forth?