Computer Science
When we compare "A" != "a", it will give True as an output.
Python String Manipulation
1 Like
Answer
True
Reason — In Python, string comparison is based on the ASCII or Unicode values of the characters. The ASCII value of "A" is 65, while the ASCII value of "a" is 97. Since these values are different, the comparison "A" != "a" evaluates to True.
Answered By
2 Likes