I have a small app that asks for a movie. When the rating is over 50, return watch it. If it doesn't, choose another movie. Though when I get to the condition in movieDec, it won't go back to the top of the function to calculate the score of the movie. Can't figure this one out.
def getScore():
choose = raw_input("pick a movie ")
rt = RT()
info = rt.search(choose)
rating1 = info[0].get('ratings').get('critics_score')
rating2 = info[0].get('ratings').get('audience_score')
stars = (rating1 + rating2) / 2
return rating1, rating2, stars
def movieDec():
critic, aud, stars = getScore()
print 'Critics gave it a %s' %critic
print 'Audiences gave it a %s' %aud
print 'The average rating is %s' %stars
while stars < 50:
print "That's no good, pick again"
getScore()
print 'Good choice.'