Help me only if you know the answer otherwise don't.
Attachments:
Answers
Answered by
2
A. Rewrite the following statements after correcting them:
1.
a, b = 100, 20
print(a) if a > b else print(b)
2.
x, y = 290, 300
if x > y and y < 100:
print(x + 10)
elif y > x or x < 100:
print(y + 10)
else:
print(x + y)
3.
print((a := "hello") * 4)
B. Write the output of the following code segments:
1.
False
2.
False
3.
KIPS
Similar questions
Social Sciences,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Biology,
11 months ago
English,
11 months ago