+ 13
Please explain this question đđ
14 Respostas
+ 13
At first You're concat-ing two empty strings.
k = "" + ""# two empty strings results in another empty string.
So the bool(k) will return False bcoz empty variables are False.
But in the second case u concat two white spaces.
k = " " + " "#True
So bool(k) returns True coz k is not empty here.
+ 6
bool(" ") => True, because there is a space character.
bool("") => False, because the string is empty.
+ 6
SÄñtösh Mà rà vi add a 'solved' tag to prevent any more answers
If you got the solution
+ 5
MSNđ Jason Sikes Web-Learner viknesh vikky thank you so much all of you.
Mithlesh Gautam don't copy anyone answer
+ 4
0 allways return false
And( ""+"" ="" )an empty strings also returns false in bool.
+ 3
First,
""+""=""
Empty string together with 0 is False.
Second,
" "+" "=" " (Two spaces)
Two spaces>0 --> True.
+ 1
Spaces are not "nothing" they count as a single byte thus represents a "thing" so space == space is true " " represents a space.
But "" is nothing. So nothing is false
+ 1
ALL
"" <==> False
It's called sym-ent-ix it's not
C-type language it's parallel language.
ON SAKE OF HELP
0
Try k="+" not '''+'''
0
Spaces are counted...
0
Sir
0
Try k="+"not ":+":