I updated my last Guessing game source code please check it out and tell me what you think, if it is good can you suggest another beginner project to work on to gain more experience.
-Jekwa
Code
import time
import random
def StartGame():
print "Welcome to the Guessing game"
print "You will have to guess a number between 0 and 6"
global num, time_s
num = random.randint(0,6)
time_s = time.time()
return
def Loop():
answer = False
while answer == False:
userinput = int(raw_input("What is your guess? "))
if (num == userinput):
print "Correct!"
answer = True
global time_e
time_e = time.time()
elif (userinput < num):
print "Your guess is too low"
elif (userinput > num):
print "Your guess is too high"
return
def HighScore():
global time_t
time_t = str(int(time_e - time_s))
print "It took you " + time_t + " seconds. Can you beat your last score"
return
def PlayAgain():
close = False
while close == False:
again = raw_input("Press 1 if you want to play again or 2 to exit: ")
again = int(again)
if (again == 1):
StartGame()
Loop()
HighScore()
PlayAgain()
elif (again == 2):
print "GoodBye"
close = True
return
StartGame()
Loop()
HighScore()
PlayAgain()-Jekwa


![[Image: FVNScos.png]](https://i.imgur.com/FVNScos.png)
![[Image: 2wAf2IN.gif]](https://i.imgur.com/2wAf2IN.gif)