Computer Science, asked by hanshu08, 5 months ago

Help me only if you know the answer otherwise don't.​

Attachments:

Answers

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

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

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions