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).
thanks for your information and finally my doubts fully cleared
Your way of reaching is amazing. I learnt a lot from you. Love from Pakistan
x = "apple" y = "apricot" print(x >= y) # Output: False
Learning skill is .....mind blowing β€
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. πππ
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. I have a computing test and I was struggling to grab the idea of what comparison operators are.
Very relevant π
Excellent ppt,π
Excellent ppt
The answer is false x is not greater than or equal to y
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, because ascii value of p<r
x = βappleβ y = βapricotβ print(x >= y) Output is False.
Output : False π
false bcz ASCII value of alpbhabets increases from left to right , so ASCII value of r is greater then that of p
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.
@axittiwari0