What is evaluation in Python?
Determining the value of an expression as True or False
Evaluation is crucial for decision-making in code.
What does selection enable computers to do?
Perform different actions based on if conditions are true or false
Selection is essential for controlling the flow of a program.
What are the comparison operators used in Python?
These operators are used to compare values.
What do the logical operators and and or do?
Apply logic operations to conditions
They are used to combine multiple conditions.
What is indentation in Python?
Adding spaces to the start of lines of code
Indentation helps Python understand the scope of code blocks.
Define a condition in programming.
An expression that can be evaluated as either true or false
Conditions are fundamental for control flow in programs.
What are the if, then, else statements used for?
Making code run depending on whether a statement is true or false
These statements are key for decision-making in code.
What does scope define in a program?
Which code belongs to which part of the program
Scope is important for variable accessibility.
What does sequence refer to in programming?
Code running one line at a time in order
Sequence is the default flow of execution in a program.
What is code?
The instructions within a program
Code is the foundation of any software application.
What is a variable?
A stored value in your program that is referenced by a name
Variables are essential for data manipulation in programming.
What is a data type?
Defines the type of data stored in a variable (string, integer)
Data types determine how data can be used in a program.
Define a string.
A text-based value
Strings are commonly used for handling text in programming.
What is an integer?
A whole number
Integers are a basic data type used in programming.
What is a bug?
A problem with a program not behaving as intended
Bugs can lead to unexpected behavior in software.
What is debugging?
The process of finding and correcting bugs
Debugging is an essential part of software development.
What does IDE stand for?
Integrated Development Environment
IDEs provide tools for writing and testing code.
What is syntax in programming?
The correct structure or layout of code
Syntax errors can prevent code from running properly.