Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Which condition is True only when both a and b are positive? | StemPy Lab
Quizzes
/
Which condition is True only when both a and b are positive?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Conditionals: if, elif, else
Created by
StemPy Lab
Which condition is True only when both a and b are positive?
a > 0 and b > 0
not a > 0
a > 0 and not b > 0
a > 0 or b > 0
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A student writes if day == "Saturday" or "Sunday": to test for the weekend. What is the mistake?
What does print("a" in "cat") show? →
More on
Python Basics › Conditionals: if, elif, else
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Write a simpler condition, without a not in front of a bracket, that is the same as each of these…
Medium
At a club door the guard asks the age first.
Medium
This program should say a vowel only for the letters a, e, i, o and u.
Medium
The ticket price rules are: under 5 free, under 13 pays 50, under 60 pays 100, and the rest pay 70.
Medium
All problems on this topic →