By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

builtin memory error at line 8?? anyone fix please?

P: 1
import random

num = random.randint(1,5)
choice = int(input("Take a guess: "))
guesses = 1
while num != choice:
if num > choice:
print("Go higher")
else:
print("Go Lower")

choice = int(input("Guess: "))
guesses +=1

print("You guessed well done", num)
print("it took you", guesses, "guesses.")
input("Press <enter> to exit.")
Dec 9 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.