'Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32

Type “copyright”, “credits” or “license()” for more information.

from random import randrange

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

try:

guess = int(raw_input("Enter a guess: "))

if guess ==random_number:

SyntaxError: invalid syntax

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

try:

guess = int(raw_input("Enter a guess: "))

if guess == random_number:

SyntaxError: invalid syntax

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

guess = int(raw_input("Enter a guess: "))

if guess == random_number:

print 'Congratulations! You win!'

break

if guess < random_number:

count -= 1

print 'Sorry your guess is too low.You have ‘+str(2-count)+’ guesses left’

if guess > random_number:

count -= 1

print 'Sorry your guess is too high.You have ‘+str(2-count)+’ guesses left’

else:

SyntaxError: invalid syntax

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

guess = int(raw_input("Enter a guess: "))

if guess == random_number:

print 'Congratulations! You win!'

break

if guess < random_number:

count -= 1

print 'Sorry your guess is too low.You have ‘+str(2-count)+’ guesses left’

else guess > random_number:

count -= 1

print 'Sorry your guess is too high.You have ‘+str(2-count)+’ guesses left’

else:

print 'Sorry, you ran out of chances. The number is ’ + str(random_number)

SyntaxError: invalid syntax

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

guess = int(raw_input("Enter a guess: "))

if guess == random_number:

print 'Congratulations! You win!'

break

if guess < random_number:

count -= 1

print 'Sorry your guess is too low.You have ‘+str(2-count)+’ guesses left’

else guess > random_number:

print 'Sorry your guess is too high.You have ‘+str(2-count)+’ guesses left’

else:

print 'Sorry, you ran out of chances. The number is ’ + str(random_number)

SyntaxError: invalid syntax

def start_guess():

random_number=randrange(0,9)

print(“I chose a number for 0 to 9, I want you to guess it.”)

while count < 3:

guess = int(raw_input("Enter a guess: "))

if guess == random_number:

print 'Congratulations! You win!'

break

elif guess < random_number:

count -= 1

print 'Sorry your guess is too low.You have ‘+str(2-count)+’ guesses left’

else guess > random_number:

count -= 1

print 'Sorry your guess is too high.You have ‘+str(2-count)+’ guesses left’

else:

print 'Sorry, you ran out of chances. The number is ’ + str(random_number)

SyntaxError: invalid syntax

’