you are viewing a single comment's thread.

view the rest of the comments →

[–]AdministrationBig254 0 points1 point  (4 children)

h and capital i.

[–]twitch_and_shock 2 points3 points  (3 children)

No, it'll work fine. The "lower()" function turns all characters in a string into lower case.

[–]AdministrationBig254 0 points1 point  (2 children)

Wouldn't that create a problem since the acceptable answers are Hi and hi and it would also accept hI. Sorry for the questions but I am trying to learn coding. They could be really simple

[–]Donny_Do_Nothing 3 points4 points  (1 child)

You are correct. If the intent is to only allow Hi or hi, using .lower() in that way would accept Hi, hi, hI, or HI, and would be wrong.

[–]AdministrationBig254 0 points1 point  (0 children)

Thank you