-5

In my code it is;

If 'Laia' in name:

But how do I make it so even if they input; LaIa or laiA. No matter what case(upper or lower) it reads as the same thing.

Tim
  • 38,263
  • 17
  • 115
  • 131
ImSeanDowney
  • 23
  • 1
  • 6

1 Answers1

5

I would suggest you convert all input to lowercase using the .lower() function, and compare the input with a lowercase string: 'laia' like so

name = raw_input('What is the name? ').lower()
if name == 'laia':
    # do stuff
Tim
  • 38,263
  • 17
  • 115
  • 131