Python 2.7 - defining simple functions There are two Python numeric variables ca
ID: 3809963 • Letter: P
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 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
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
Explanation / Answer
Ans: age < 18 and salary < 10000
person under 18 years of age who does not earn $10,000 or more a year
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.