< Or > conditional statements is applied only for character or strings also? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

< Or > conditional statements is applied only for character or strings also?

17th Aug 2016, 12:44 PM
Shraddha Behra
5 Answers
+ 3
when we compare a string and an integer, it obviously results into FALSE .. you can try typing this - -------------------------- print("3" == 3) - result(False) --------------------------
28th Sep 2016, 2:13 PM
Somya Bhupal
Somya Bhupal - avatar
+ 1
for character or strings , they will run by dictionary
30th Aug 2016, 6:19 PM
beauty1234
0
afa I know in all most all programming languages this works only with numbers except number if u try with string u might get an unsupported operations error.
17th Aug 2016, 5:30 PM
Manish Pandey
Manish Pandey - avatar
0
Works with strings too. Their alphabet order I think
24th Aug 2016, 8:56 AM
Jan Verner
Jan Verner - avatar
0
It works for both char and string. Just make sure to include you char or string in quotes
25th Nov 2016, 1:36 PM
siva
siva - avatar