Question: What will be the value of result after executing the following code? number = 1 7 if number % 2 = = 0 : if
What will be the value of result after executing the following code?
number
if number :
if number :
printDivisible by
else:
printEven but not divisible by
elif number :
printDivisible by
else:
printOdd and not divisible by
Divisible by
Even but not divisible by
Divisible by
Odd and not divisible by
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
