import random
print ("hello")
user_friend1 = raw_input("Name one of your friends: ")
user_friend2 = raw_input("Name another friend: ")
# inputs for user
friends = [user_friend1,user_friend2]
best_friend = random.sample(friends, 1)
I want to loop it so that if a user types an integer to a question then it will ask the question again, i need it for both questions user_friend
1 and 2
print ("your best friend is %s") % (best_friend)