Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

How do I make names NOT case sensitive?

For example, if first_name == "Emily": print(first_name, "is using Python") print("have a great day {}!". format(first_name))

I want it to print "emily is using Python" and not just "Emily is using Python"

1 Answer

Steven Parker
Steven Parker
231,248 Points

This is not a situation where the term "case sensitive" would apply. That would be for a situation where the name was being compared to something.

But if you want to convert a string to all lower case, just call the "lower" method on it. So instead of "first_name" you would write "first_name.lower()"