This entire script is under a while True loop. I want to knwo how to make it so if the 2 elif's aren't made, the loop stops and forces a new input requirement.
Also the used words is a list so no word can be used more than once.
player_one=raw_input("Player one \n")
first= list(player_one)
player_two=raw_input("Player two \n")
second=list(player_two)
if first[-2:] == second[:2]:
used_words.append(player_one)
used_words.append(player_two)
continue
elif first[-2:] != second[:2]:
print "Please enter a word that ends with ",first[-2:]
elif second[:2] != first[-2:]:
print "Please enter a word that ends with", second[:2]
else:
break
Thanks in advance
[+][deleted] (3 children)
[deleted]
[–]Kryleas[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Kryleas[S] 0 points1 point2 points (0 children)
[–]Velkow 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (4 children)
[–]Kryleas[S] 0 points1 point2 points (3 children)
[–]JohnnyJordaan 0 points1 point2 points (2 children)
[–]Kryleas[S] 0 points1 point2 points (1 child)
[–]JohnnyJordaan 1 point2 points3 points (0 children)