Structure of Algorithm and Programming Chapter 5

5.0(2)
studied byStudied by 250 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:07 AM on 11/21/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

53 Terms

1
New cards

Python

A popular programming language, released in 1991.

2
New cards

The use of Python

Web development (server-side), Software development, Mathematics and System scripting.

3
New cards

The creator of Python

Guido van Rossum

4
New cards

Integrated Development Environment (IDE)

Allows common activities of writing software and identify programming errors.

5
New cards

Syntax Errors

Refers to the structure of a program and the rules about that structure.

6
New cards

Runtime Errors

Also called exceptions, usually indicate that something exceptional (and bad) has happened.

7
New cards

Logic Errors

Code will run successfully but the output is not expected.

8
New cards

Indentation

The spaces at the beginning of a code line to indicate a block of code and must be at least one.

9
New cards

Comment and Documentation strings

Use for the purpose of in-code documentation.

10
New cards

Comments

Start with #

11
New cards

Documentation string or docstring

Statements that is included within the triple quote """.

12
New cards

Comment

#This is a message

13
New cards

Documentation

“““

This is a message

“““

14
New cards

Reserved words

Have predefined meaning and syntax in the language.

15
New cards

Variables

The containers for storing data values.

16
New cards

Variables name

  • must start with a letter or underscore.

  • can only contain alpha-numeric characters and underscores

  • case- sensitive

  • cannot use keywords

17
New cards

Text Type

str

18
New cards

Numeric Type

int, float, complex

19
New cards

Boolean Type

bool

20
New cards

Sequence type

list, tuple, range

21
New cards

Set type

set

22
New cards

Binary type

bytes, bytearray, memoryview

23
New cards

int

45

24
New cards

float

45.0

25
New cards

str

“hello”

26
New cards

complex

1j

27
New cards

complex

1+9j

28
New cards

complex

9j+5

29
New cards

list

[23,42,54,”hello”]

30
New cards

tuple

(23,43,54,”hello”)

31
New cards

tuple((23,43,56))

tuple

32
New cards

list((9,4,3,2,6))

list

33
New cards

Arithmetic Operator

+, - , * , / …

34
New cards

Addition

+

35
New cards

Subtraction

-

36
New cards

Multiplication

*

37
New cards

Division

/

38
New cards

Modulus

%

39
New cards

Exponent

**

40
New cards

Floor division

//

41
New cards

Relational Operator

>,<,==,<=,>= …

42
New cards

More than

>

43
New cards

Less than

<

44
New cards

Equal

==

45
New cards

Not Equal

!=

46
New cards

More than or equal to

>=

47
New cards

Less than or equal to

<=

48
New cards

Logical Operator

not, and, or …

49
New cards

not

not True

50
New cards

and

True = True + True

False = True +False

False = False + False

51
New cards

or

True = True + True

True = True + False

False = False + False

52
New cards

input() function

Ask input from the user

53
New cards

print() function

Displays the output and jump to the next line.

Explore top flashcards

Verbos en aleman
Updated 1056d ago
flashcards Flashcards (106)
SAT Vocabulary
Updated 288d ago
flashcards Flashcards (990)
UCSP Reviewer
Updated 691d ago
flashcards Flashcards (104)
Chi square
Updated 1183d ago
flashcards Flashcards (20)
Ap Lang Master list
Updated 107d ago
flashcards Flashcards (95)
Verbos en aleman
Updated 1056d ago
flashcards Flashcards (106)
SAT Vocabulary
Updated 288d ago
flashcards Flashcards (990)
UCSP Reviewer
Updated 691d ago
flashcards Flashcards (104)
Chi square
Updated 1183d ago
flashcards Flashcards (20)
Ap Lang Master list
Updated 107d ago
flashcards Flashcards (95)