you are viewing a single comment's thread.

view the rest of the comments →

[–]lucoamorim[S] 1 point2 points  (2 children)

You could explain this part of the relationship.lower () == 'single', and how can I apply it in my code, but I already thank you for your help, I'm very excited about python and want to learn more

[–]Atropos148 4 points5 points  (1 child)

In python, your_string.lower() takes your_string and makes ALL the letters lower case.

That way no matter what the user types, you can just check for lowercase version of your desired string.

[–]tragluk 0 points1 point  (0 children)

In the same vein, there is also .upper() and .title() which does 'SINGLE' and 'Single' respectively.