0

i guess no one can explain this output?

country = "US" age = 42 if(country == "US" or country == "GB") and (age > 0 and age < 100): print("Cool")

27th Nov 2022, 2:45 PM
BADAVATH RAMKUMAR
3 Answers
+ 9
Why do you think no one can guess it? If you are not sure how a code works, it is often helpful to run the code and print intermediate steps.
27th Nov 2022, 3:13 PM
Lisa
Lisa - avatar
+ 1
Answer is - cool
29th Nov 2022, 10:22 AM
GANIREDDY NUTHANA VARA PRADEEP
GANIREDDY NUTHANA VARA PRADEEP - avatar
0
I was expecting something like printf("%c %d", &(--**(--*var++)++)), --var++);
27th Nov 2022, 7:53 PM
arturop200
arturop200 - avatar