L1-L3

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

37 Terms

1
New cards

IDE

Integrated Development Environment, where code is written.

2
New cards

Syntax

Arrangement of words and phrases to create well-formed sentences in a language.

3
New cards

Syntax Errors

A character or string incorrectly placed in a command or instruction that causes a failure in execution.

4
New cards

Run-Time Errors

Detected errors while the program is running.

5
New cards

Name Errors

When a variable or function is not found.

6
New cards

Print

Prints a string.

7
New cards

Input

Allows the user to enter a string or integer.

8
New cards

Str

Turns an integer into a string if added to another string.

9
New cards

Int

Identifies an integer.

10
New cards

Function

A sub-program that performs a specific task.

11
New cards

Function Body

The block of code after the function header.

12
New cards

Def

The first word in the function header.

13
New cards

Colon (:)

Must appear at the end of the function header.

14
New cards

Built-in Functions

Functions that come as part of Python.

15
New cards

Function Call

A special line that causes the flow of control to switch to the first line inside the function body.

16
New cards

Flow of Control

The sequence in which lines of code are executed.

17
New cards

Function Definition

A function header and a function body.

18
New cards

Modular Functions

Break tasks into smaller functions.

19
New cards

Variables

Memory locations used to store data, named by the programmer.

20
New cards

Assignment Operator (=)

The equal sign; assigns the value on the right-hand side to the variable on the left-hand side.

21
New cards

Expressions

Can be a literal value or a combination of values and operators.

22
New cards

Addition (+)

Arithmetic operator for addition.

23
New cards

Subtraction (-)

Arithmetic operator for subtraction.

24
New cards

Multiplication (*)

Arithmetic operator for multiplication.

25
New cards

/ (Division)

Arithmetic operator for division.

26
New cards

Variable Naming Rules

Guidelines for naming variables in programming.

27
New cards

No spaces or special characters

Variable names cannot contain spaces or special characters.

28
New cards

Case-sensitive

Variable names are case-sensitive, meaning 'ISBN' and 'isbn' are different.

29
New cards

Reserved keywords

Avoid using reserved keywords like print or def as variable names.

30
New cards

Example of function call

An example of calling a function to execute it.

31
New cards

Example of syntax error

An example where the syntax of the code leads to an error during execution.

32
New cards

Example of run-time error

An example illustrating an error that occurs while the program is running.

33
New cards

Example of name error

An example where a variable or function cannot be found.

34
New cards

Example of variable assignment

An example demonstrating how to assign values to variables.

35
New cards

Example of using built-in functions

An example showing how to use a built-in function in Python.

36
New cards

Example of modular functions

An example showing how to create smaller functions for specific tasks.

37
New cards

Example of print function

An example of using the print function to display output.