COMP110

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/60

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:14 PM on 4/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

61 Terms

1
New cards

int

whole number (no decimals)

2
New cards

float

number with decimals

3
New cards

str

text in quotes

4
New cards

bool

True or False

5
New cards

type()

function that tells you the type of a value

6
New cards

expression

code that evaluates to a value

7
New cards

evaluation

the process of computing a value

8
New cards

order of operations

()

9
New cards

concatenation

combining strings using +

10
New cards

repetition

repeating a string using * with an int

11
New cards

indexing

accessing a character using position starting at 0

12
New cards

index 0

first element in a sequence

13
New cards

len()

returns the length of a string or list

14
New cards

type conversion

changing a value from one type to another

15
New cards

int()

converts to integer (cuts off decimals)

16
New cards

float()

converts to decimal number

17
New cards

str()

converts to string

18
New cards

TypeError

error when operation is used on wrong types

19
New cards

function

reusable block of code that takes input and returns output

20
New cards

function definition

creating a function using def

21
New cards

function call

using a function with arguments

22
New cards

parameter

variable in function definition

23
New cards

argument

actual value passed into function

24
New cards

return

sends a value back and ends the function

25
New cards

None

default return value when no return is given

26
New cards

boolean expression

expression that evaluates to True or False

27
New cards

and

True only if both sides are True

28
New cards

or

True if at least one side is True

29
New cards

not

reverses True/False

30
New cards

conditional

if/else statement controlling flow

31
New cards

if

runs code when condition is True

32
New cards

else

runs code when condition is False

33
New cards

elif

checks another condition if previous is False

34
New cards

loop

repeats code multiple times

35
New cards

for loop

iterates over a sequence

36
New cards

range()

generates a sequence of numbers

37
New cards

while loop

repeats while condition is True

38
New cards

list

ordered collection of values

39
New cards

list indexing

accessing elements using positions

40
New cards

append()

adds item to end of list

41
New cards

list length

number of items in a list

42
New cards

dictionary

collection of key-value pairs

43
New cards

key

unique identifier in a dictionary

44
New cards

value

data associated with a key

45
New cards

accessing dict

using dict[key] to get value

46
New cards

updating dict

assigning new value to a key

47
New cards

deleting dict

removing a key-value pair with del

48
New cards

scope

where a variable is accessible

49
New cards

local variable

variable inside a function

50
New cards

global variable

variable outside all functions

51
New cards

scope error

trying to use a variable outside its scope

52
New cards

f-string

string with embedded expressions using {}

53
New cards

recursion

function calling itself

54
New cards

base case

condition that stops recursion

55
New cards

recursive case

part that calls function again

56
New cards

class

blueprint for creating objects

57
New cards

object

instance of a class

58
New cards

attribute

variable inside an object

59
New cards

method

function inside a class

60
New cards

self

reference to the current object

61
New cards

constructor

init method that initializes attribute