Variables in Python Flashcard

Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

8 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a variable in Python?
Back
A reserved memory location to store values
2.
FLASHCARD QUESTION
Front
How do you declare a variable in Python?
Back
variable_name = value
3.
FLASHCARD QUESTION
Front
What are the rules for naming a variable in Python?
Back
Variables in Python can only contain letters, numbers, and underscores. They cannot start with a number and cannot be a Python keyword.
4.
FLASHCARD QUESTION
Front
What is the difference between local and global variables in Python?
Back
Local variables are defined within a function and can only be accessed within that function, while global variables are defined outside of any function and can be accessed throughout the entire program.
5.
FLASHCARD QUESTION
Front
Explain the concept of variable scope in Python.
Back
The concept of variable scope in Python refers to the visibility of variables within different parts of a program.
6.
FLASHCARD QUESTION
Front
What are the different data types that can be assigned to a variable in Python? Options: integer, float, string, boolean
Back
integer, float, string, boolean
7.
FLASHCARD QUESTION
Front
How do you reassign a value to a variable in Python?
Back
variable_name = new_value
8.
FLASHCARD QUESTION
Front
What is the purpose of using constants in Python?
Back
To store values that are not meant to be changed throughout the program.
Similar Resources on Wayground
11 questions
Computer Programming

Flashcard
•
University
10 questions
Scientific Method

Flashcard
•
9th Grade
15 questions
Python

Flashcard
•
10th - 12th Grade
15 questions
Response & Explanatory Variables

Flashcard
•
11th Grade
15 questions
Unit 3 Reveiw

Flashcard
•
11th Grade
15 questions
Correlation Flashcard

Flashcard
•
11th Grade
9 questions
Python Programming Basics - MP2 Study

Flashcard
•
10th Grade
8 questions
Lab 0- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade