Flow controls: Conditions · 15 / 22 Exercise Medium

Nested conditional operator

Objective

Create a Python program that prompts the user to enter two integers (a, b) and determines how many of them are positive using nested conditional operators in Python.

Input
3
2
Output
The quantity of positive numbers is: 2

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise