I've been trying to use Python's one function dedicated to making every letter in a string uppercase, but after using it on a string booleans don't work on that string. What do I mean you ask? Well let's just say the following booleans:
"b".upper() is "B"
".".upper() is "."
".".upper() is ".".upper()
are all false.
I'm so confused. It acts like after I convert a string to upper() form, instead of returning the same string with uppercase letters (which is what the documentation says it does), it returns a whole new object that doesn't equal anything even an object produced in the exact same conditions.
Setting breakpoints and looking at the actual values of the variables seems fruitless. I hover over is_graduate_input = input("Enter (y/n)").upper()
and it shows me a value of "Y", because that's what I entered. But then directly after that line my print(is_graduate_input is "Y")
statement prints out False?!?! Why?!?!
The documentation for python says that their algorithm for making letters uppercase is described in some Unicode standard. I don't want to read through it. I don't think it will help. Can someone just please tell me what the hell is going on. I want to go to bed. I have school tomorrow.