thanks a bunch and I hope someone can help me.
from Tkinter import *
c = 0
num = random.randint(0,100)
c = 0
giveup = 'The answer was ',num,'''XD
high = '''Nope, Sry try again.
The number was higher than what you typed.
low = '''Nope, Sry try again.
The number was lower than what you typed.
right = '''Yeap, Good guess :D ;).
Now do you want to exit?
You can restart the program for it
to find anouther random number for you to guess.
(type "exit" in the entry box to quit)
guesses = 'You have used',c,'''guess(es).
answer = ent.get()
if answer == num:
yes = 'exit'
if answer == yes:
if answer > num and answer != 'GU' and answer != 'chances':
c = c + 1
if answer < num and answer != 'GU' and answer != 'chances':
c = c + 1
if answer == 'GU':
if answer == 'guesses':
question = range(101)
question2 = '''
Guess the right number (0-100)
and fill it in the entry box.
(Type exit to quit, or 'GU' to give up
or 'guesses' to see how many guesses
you have already used to guess the number)
selec = listb.curselection()
select = listb.get(selec)
Window = Tk()
wTitle = Frame(Window)
text = Text(Window, bg = 'blue', fg = 'white', width = '50', height = '15')
ent = Entry(Window, bg = 'white')
buttona = Button(Window, text = 'Guess', bg = 'blue', fg = 'yellow', width = '10', command = Guess)
buttonb = Button(Window, text = 'Ask Question', bg = 'red', width = '25', command = Ask)
label1 = Label(Window, text = 'Guess:')
label = Label(Window, text = 'Old Answers:')
listb = Listbox(Window, bg = 'black', fg = 'white', width = '10', height = '7')
byme = Label(Window, text = 'By: Eclipse')
ent.insert(0, 'Number guess goes here.')
label1.place(x = 0, y = 230)
ent.place(x = 40, y = 230)
buttona.place(x = 0, y = 250)
label.place(x = 170, y = 230)
listb.place(x = 237, y = 235)
byme.pack(pady = 50)