Post

Python Developer
Python Developer@PythonDvz·
Only 90% of the beginners answer this correctly 🤯 Comment your answer 👇
Python Developer tweet media
English
13
7
32
6.6K
Honest Raccoon
Honest Raccoon@GloriaHowa94888·
@PythonDvz What does x and x<3 mean here? I don’t get it when a single x is put here
English
0
0
0
55
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonDvz The `x and x<3` part of the chained comparison is True (so we can ignore the OR condition), so A will print.
English
0
0
2
92
NR
NR@Nice_Researcher·
@PythonDvz The code outputs "A" because the if-condition evaluates to True for x=1.
English
0
0
0
18
Paylaş