x='apple' y='appricot' print (x>=y) #results to false #also for those wondering if it'll convert it into ASCII and compare its sum print('brag'>='grab') #ASCII value of brag and grab is same still it'll print false bC we're comparing two string not nums
the result is true In Python, string comparison is performed lexicographically based on the ASCII values of the characters. In this case, the string 'apple' is lexicographically greater than the string ' apricot'. Therefore, x is considered greater than or equal to y, resulting in True being printed.
False. In this case, "apple" is considered less than "apricot" because, at the first differing character, 'p' (in "apple") has a lower Unicode value compared to 'r' (in "apricot").
thanks for your information and finally my doubts fully cleared
The answer is "FALSE", due to the ASCII value of the third character of both strings being different i.e. p(112) is not LTE r(114).
Your way of reaching is amazing. I learnt a lot from you. Love from Pakistan
x='apple'
y='appricot'
print (x>=y)
#results to false
#also for those wondering if it'll convert it into ASCII and compare its sum
print('brag'>='grab')
#ASCII value of brag and grab is same still it'll print false bC we're comparing two string not nums
Thank you sir very nice gide & very nice information comparison operator teaching video.👍
Sir,please add playlist of searching and its type in detail in c language. 🙏🙏🙏
thank you. I have a computing test and I was struggling to grab the idea of what comparison operators are.
Me too now tho
Very relevant 😊
False, because ascii value of p
Yes
the result is true In Python, string comparison is performed lexicographically based on the ASCII values of the characters. In this case, the string 'apple' is lexicographically greater than the string ' apricot'. Therefore, x is considered greater than or equal to y, resulting in True being printed.
The answer is false x is not greater than or equal to y
Answer is 'False' 👍👍
False. In this case, "apple" is considered less than "apricot" because, at the first differing character, 'p' (in "apple") has a lower Unicode value compared to 'r' (in "apricot").
The answer will be False because x is not equal to or greater than y if you look at how many words both of them have.
Good explanation but you can improve it with more examples
1:33 Hi. How do you read this logic, 50000
Output:False
Neither x is greater or equal to y.
so the answer to the problem is False.
h.w ans false
HW: False
the answer gave me a False
false
False
False h answer
FALSE
false :)
The answer is false because x is not greater or equal to y
false
False
false
False
False
false
False
false
False
false
False
False