
Python PCEP Flashcard #2
Flashcard
•
Science
•
6th - 8th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a List in Python?
Back
A List is a data type in Python that is used to store multiple items in a single variable. Lists are ordered, changeable, and allow duplicate values. Example: x = [1, 2, 3]
2.
FLASHCARD QUESTION
Front
What is the output of the following code: numbers = [5, 14, 9, 17]; for number in numbers: if number % 3 == 0: print(number)?
Back
The output will be 9, as it is the only number in the list that is divisible by 3.
3.
FLASHCARD QUESTION
Front
What does the expression 'number > 7' evaluate to if number is 10?
Back
The expression evaluates to True, as 10 is greater than 7.
4.
FLASHCARD QUESTION
Front
What symbol is used in Python to assign values to a variable?
Back
The equals sign '=' is used to assign values to a variable in Python.
5.
FLASHCARD QUESTION
Front
What is a Dictionary in Python?
Back
A Dictionary is a data type in Python that stores data in key-value pairs. Example: x = {'a': 1, 'b': 2}.
6.
FLASHCARD QUESTION
Front
What is a Tuple in Python?
Back
A Tuple is a data type in Python that is similar to a list but is immutable (cannot be changed). Example: x = (1, 2, 3).
7.
FLASHCARD QUESTION
Front
What is the difference between a List and a Tuple?
Back
The main difference is that Lists are mutable (can be changed) while Tuples are immutable (cannot be changed).
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
9 questions
Classical and Medieval Art
Flashcard
•
KG
10 questions
Novice Lesson 2 Practice Words
Flashcard
•
KG
12 questions
Future Simple Task
Flashcard
•
7th - 8th Grade
15 questions
S.O. S phrasesSpanish Language Flashcard
Flashcard
•
6th - 8th Grade
10 questions
WATER BODIES
Flashcard
•
6th Grade
5 questions
Orestis' flashcards
Flashcard
•
6th - 8th Grade
15 questions
Adding and Subtracting Decimals
Flashcard
•
6th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Science
12 questions
Newton's Laws of Motion
Lesson
•
6th - 8th Grade
20 questions
Elements, Compounds and Mixtures
Quiz
•
8th Grade
10 questions
Exploring Earth's Seasons and Their Causes
Interactive video
•
6th - 8th Grade
22 questions
Wave Properties
Lesson
•
7th Grade
8 questions
VP #9: Amoeba Sisters Pedigrees
Interactive video
•
7th Grade
20 questions
Cells! Cell Theory and Characteristics of Eukaryotes/Prokaryotes
Quiz
•
6th Grade
11 questions
The Water Cycle
Quiz
•
6th Grade
20 questions
Natural Selection and Adaptations
Quiz
•
6th - 8th Grade