L1-L3

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

IDE

1 / 36

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

37 Terms

1

IDE

Integrated Development Environment, where code is written.

New cards
2

Syntax

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

New cards
3

Syntax Errors

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

New cards
4

Run-Time Errors

Detected errors while the program is running.

New cards
5

Name Errors

When a variable or function is not found.

New cards
6

Print

Prints a string.

New cards
7

Input

Allows the user to enter a string or integer.

New cards
8

Str

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

New cards
9

Int

Identifies an integer.

New cards
10

Function

A sub-program that performs a specific task.

New cards
11

Function Body

The block of code after the function header.

New cards
12

Def

The first word in the function header.

New cards
13

Colon (:)

Must appear at the end of the function header.

New cards
14

Built-in Functions

Functions that come as part of Python.

New cards
15

Function Call

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

New cards
16

Flow of Control

The sequence in which lines of code are executed.

New cards
17

Function Definition

A function header and a function body.

New cards
18

Modular Functions

Break tasks into smaller functions.

New cards
19

Variables

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

New cards
20

Assignment Operator (=)

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

New cards
21

Expressions

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

New cards
22

Addition (+)

Arithmetic operator for addition.

New cards
23

Subtraction (-)

Arithmetic operator for subtraction.

New cards
24

Multiplication (*)

Arithmetic operator for multiplication.

New cards
25

/ (Division)

Arithmetic operator for division.

New cards
26

Variable Naming Rules

Guidelines for naming variables in programming.

New cards
27

No spaces or special characters

Variable names cannot contain spaces or special characters.

New cards
28

Case-sensitive

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

New cards
29

Reserved keywords

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

New cards
30

Example of function call

An example of calling a function to execute it.

New cards
31

Example of syntax error

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

New cards
32

Example of run-time error

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

New cards
33

Example of name error

An example where a variable or function cannot be found.

New cards
34

Example of variable assignment

An example demonstrating how to assign values to variables.

New cards
35

Example of using built-in functions

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

New cards
36

Example of modular functions

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

New cards
37

Example of print function

An example of using the print function to display output.

New cards

Explore top notes

note Note
studied byStudied by 28 people
... ago
5.0(2)
note Note
studied byStudied by 159 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 63 people
... ago
5.0(2)
note Note
studied byStudied by 135 people
... ago
5.0(2)
note Note
studied byStudied by 53 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (29)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 55 people
... ago
5.0(3)
flashcards Flashcard (26)
studied byStudied by 23 people
... ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 77 people
... ago
5.0(2)
flashcards Flashcard (67)
studied byStudied by 5 people
... ago
4.0(1)
flashcards Flashcard (95)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
robot