Post

Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Answer: D) None (no output). Because x = 7 is odd, x % 2 == 0 is False, so the if block doesn’t run at all. Both print() lines are inside the if, so nothing gets printed.
English
0
0
15
1.3K
Jimmy Fikes
Jimmy Fikes@akajim·
@Python_Dv D. None. This isn’t a loop, it’s a conditional statement asking if 7 % 2 == 0, which it is not. 7 % 2 == 1. Since the IF condition fails, nothing is output. The lack of any output is not None, it’s just no output at all. In Python, None is not nothing.
English
0
0
1
369
𐌌ƗKΣL
𐌌ƗKΣL@1AmOld5hool·
@Python_Dv D None In order for the code to work you need an “else” statement before the last print
English
0
0
1
274
Python Tech
Python Tech@PythonTech43716·
@Python_Dv D) None is the right answer. The value x = 7 and if x%2==0 then print the answer here if block will not excute and else block is not given so answer is none.
English
0
0
1
368
K.AMMAAR
K.AMMAAR@k_ammaar12·
@Python_Dv The answer is odd because 7/2 is 3 remainder 1 not 0.
English
0
0
1
352
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv No output. When 7 is divided by 2, the remainder is 1 and not 0, therefore, the if clause is not met. As a result, none of the print statements are executed. Mind it None is a keyword in Python so None is not the correct answer.
English
0
0
1
563
kayu
kayu@cinnamonkecil·
@Python_Dv None printed because 7 % 2 == 1
English
0
0
0
769
~
~@anam195620·
@Python_Dv Easy ODD 😀
English
0
0
0
2
Paylaş