2026 STUDY GUIDE QUESTIONS AND
ANSWERS
◉ Problem solving process
Answer: analyze problem
develop algo
write code
test and debug
◉ python is dynamically typed
Answer: variable types in python are determined at runtime
◉ Purpose of code editor in python IDE
Answer: provide a text editor offering syntax highlighting, code
completion, and indentation.
◉ Python variables
,Answer: serving as placeholders to store and manage data. In
Python, you don't need to explicitly declare a variable's data type; it
dynamically infers it based on the assigned value.
◉ Symbolic Names
Answer: refer to names or identifiers that represent values, objects,
or entities.
◉ variable name rules
Answer: number, letters, _
start with letter or _
cannot be a python keyword
◉ assign multiple variables
Answer: x, y, z = "one", "two", "three"
◉ assigning the same value multiple variables
Answer: hi = hello = hey = "greeting"
◉ printing multiple variables with , and +
Answer: + will combine strings, and also numbers but not together
, , will combine strings and numbers together.
◉ inside a function
Answer: means the code is part of a specific function block. Variables
defined inside the function have local scope, and the function
executes when called.
◉ outside a function
Answer: means the code is not part of any specific function block.
Variables defined outside functions generally have a global scope
and can be accessed throughout the program
◉ function (local)
Answer: not accessible outside, promoting encapsulation.
◉ Global Variables
Answer: declared outside of functions and can be accessed from any
part of the program
◉ core data types
Answer: integers, floats, strings
◉ Lists and Tuples