Practice Test Geeks home

Python Control Flow: Conditional Statements Questions and Answers

What is the output of the following Python code snippet?
```python

temperature = 25

if temperature > 30:

print("Hot")

elif temperature > 20:

print("Warm")

else:

print("Cold")

```

Select your answer