So I've been learning the basics of Python and threw this bit of code together but i'm having a few issues. So I basically want it to check if the user input matches a value in the 'con' variable and if it matches to print correct, if it's wrong print not recognised.
#countries.py con = [ "uk" , "japan" , "us" ] uInput = input("Enter the country: ") if uInput == con: print("Correct") else: print("Not Recognised") Also, I'd like to add lower() to the users input, so the capitalisation doesn't affect the results but don't really know where to add it.
Like I say, I'm new to coding so go easy!
Cheers