There is no condition for the you lost line. It will always print.
you will need something like
Here is an example for you to play around with
you will need something like
if second_data == first_data: # continue with whatever else: print('you lost')On a side note that should probably be in the while loop
Here is an example for you to play around with
while True: print('ctrl c to quit') first = input('country name: ') second = input('another name: ') last_letter = first[-1] first_letter = second[:1] if last_letter == first_letter: print('correct') else: print('wrong answer')
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags