Question: Python 2.7 - defining simple functions There are two Python numeric variables called age and salary which contain values relating to a person's age and
Python 2.7 - defining simple functions
There are two Python numeric variables called age and salary which contain values relating to a person's age and salary (in dollars) respectively.
Suppose that a dependent child is defined as a person under 18 years of age who does not earn $10,000 or more a year. Which of the following Python expressions would define a dependent child using that definition?
| age < 18 and salary < 10000 | ||
| age <= 18 and salary <= 10000 | ||
| age <= 18 or salary <= 10000 | ||
| age >= 18 and salary <= 10000 | ||
| age > 18 and salary > 10000 | ||
| age < 18 or salary < 10000 | ||
| age >= 18 or salary <= 10000 | ||
| age > 18 or salary < 10000 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
