Jul-15-2022, 12:50 PM
(Jul-15-2022, 08:50 AM)tylerdurdane Wrote: What I need is: do not restart the game. Take the 2nd input and consider as 1st and keep asking for 2nd input.So, to clarify... Is something like this what your looking for?
first_data=input('enter a country name: ') print(first_data) last_letter=str(first_data[-1]) print(last_letter) second_data = 'Wrong answer!' while second_data [-1] != last_letter : second_data=input('enter a country name starts with the last letter of previous country name: ')