I got my code to work and it's looping everytime it goes to else statement, basically loops back to the if statement..
Just started to learn python and I'm really liking it.
here is my simple code.
print 'Welcome to "Guess my number"'
def main():
while True:
number = raw_input('Please Enter a number between 1 and 10: ')
if number == '5':
print 'You Got It!! It\'s number ' + number
return
else:
print 'Please try again!'
main()
raw_input("\nPress enter")