-2

I'm already using elif not re.match("^[a-z]*$", first_name), but every time I enter a capital letter for the name, it returns the message I use if they are using anything other than a letter in the alphabet. Thank You in advance for any help you can give.

furkanayd
  • 811
  • 7
  • 19

1 Answers1

0

For lower case:

s1 = input().lower()

and for upper case:

s1 = input().upper()

This should just work fine. All it is doing is converting the input to either upper or lower case as specified.

Hope this helps :)

Debdut Goswami
  • 1,301
  • 12
  • 28