Evaluate the output:- [3 x 3 = 9]
(i) for X in range (5):
print(X)
(ii) num= 5
if(num%2==0):
print("Number is even")
else:
print("Number is odd")
(iii) Let x= 2
if (x==1):
print("yes")
elif (x==2):
print("maybe")
else print ("no")
Answers
Answered by
0
Explanation:
The Sun is the major source of heat and light in our solar system. Heat and light support all forms of life on the Earth. 2. The gravitational pull of the Sun is responsible for keeping the planets in their orbits.
Answered by
0
Answer:
hiThe modulus operator¶
The modulus operator¶The modulus operator works on integers (and integer expressions) and yields the remainder when the first operand is divided by the second. In Python, the modulus operator is a percent sign (%). The syntax is the same as for other operators
Similar questions
English,
29 days ago
Computer Science,
29 days ago
Math,
1 month ago
Science,
1 month ago
Math,
8 months ago
Math,
8 months ago
Social Sciences,
8 months ago