
Python If ... Else

Flashcard
•
Other
•
12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the 'if' keyword in Python signify?
Back
Start of a conditional statement
2.
FLASHCARD QUESTION
Front
What operator is used in Python to check if two values are equal?
Back
==
3.
FLASHCARD QUESTION
Front
Which keyword is used in Python to define an alternative condition if the initial 'if' condition is not met?
Back
elif
4.
FLASHCARD QUESTION
Front
What is the output of the conditional statement if 'a = 33' and 'b = 200' and the condition is 'if b > a'?
Back
'b is greater than a'
5.
FLASHCARD QUESTION
Front
What does Python use to define the scope of a block of code?
Back
Indentation
6.
FLASHCARD QUESTION
Front
What keyword is used to reverse the result of a conditional statement in Python?
Back
not
7.
FLASHCARD QUESTION
Front
In Python, what does the 'and' keyword do?
Back
Combines two conditional statements
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Mastering Python Loops, Functions, and Lists

Flashcard
•
University
10 questions
Python- Operators

Flashcard
•
12th Grade
7 questions
Python - Flow control

Flashcard
•
11th Grade
11 questions
Computer Programming

Flashcard
•
University
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
15 questions
Python Compound Conditionals

Flashcard
•
12th Grade
15 questions
Python Compound Conditionals

Flashcard
•
12th Grade
10 questions
The second conditional

Flashcard
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
21 questions
Set SMART Goals

Lesson
•
9th - 12th Grade
20 questions
Lab Equipment Quiz Chemistry

Quiz
•
9th - 12th Grade