python

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

1/68

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:41 PM on 6/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

69 Terms

1
New cards

print()

Displays output in the console so you can see what your code does

2
New cards

string (str)

A sequence of characters inside quotes like "Hello" or 'Python'

3
New cards

concatenation

Combining strings using the + operator

4
New cards

len()

Returns the length of an object

5
New cards

indexing

Accessing individual characters/items using their position

6
New cards

negative indexing

Accessing items from the end of a sequence using negative numbers

7
New cards

slicing

Extracting part of a sequence using start:stop format

8
New cards

variable

A named container that stores a value

9
New cards

=

Assigns a value to a variable

10
New cards

==

Checks whether two values are equal

11
New cards

int

A whole number data type like 5 or -3

12
New cards

float

A decimal number data type like 3.14

13
New cards

complex

A number containing real and imaginary parts like 2+3j

14
New cards

snake_case

Naming style using lowercase letters and underscores

15
New cards

f-string

A formatted string that inserts variables using curly brackets

16
New cards

.upper()

Converts a string to uppercase

17
New cards

.capitalize()

Makes the first letter uppercase

18
New cards

.replace()

Replaces characters or text inside a string

19
New cards

Boolean

A data type with only True or False values

20
New cards

comparison operators

Operators that compare values and return True or False

21
New cards

list

An ordered collection of items

22
New cards

list indexing

Accessing list items using their position

23
New cards

.append()

Adds an item to the end of a list

24
New cards

.remove()

Removes an item from a list

25
New cards

for loop

Repeats code for each item in a sequence

26
New cards

range()

Creates a sequence of numbers for loops

27
New cards

while loop

Repeats code while a condition remains True

28
New cards

dictionary

A collection of key-value pairs stored using curly brackets

29
New cards

key

The label used to access a dictionary value

30
New cards

value

The data stored inside a dictionary

31
New cards

dictionary access

Getting a value using dictionary["key"]

32
New cards

.items()

Returns dictionary keys and values together

33
New cards

.values()

Returns only dictionary values

34
New cards

pandas

A Python library used for data analysis and manipulation

35
New cards

import pandas as pd

Imports pandas and gives it the shortcut name pd

36
New cards

DataFrame

A table-like data structure with rows and columns

37
New cards

pd.read_csv()

Loads a CSV file into a DataFrame

38
New cards

df.head()

Shows the first rows of a DataFrame

39
New cards

df.tail()

Shows the last rows of a DataFrame

40
New cards

df.sample()

Shows random rows from a DataFrame

41
New cards

df["column"]

Selects a column from a DataFrame

42
New cards

df.loc[]

Selects rows and columns using labels

43
New cards

df.iloc[]

Selects rows and columns using positions

44
New cards

df.info()

Shows DataFrame structure and data types

45
New cards

df.describe()

Shows summary statistics

46
New cards

df.shape

Shows the number of rows and columns

47
New cards

aggregation

Calculating summary values like sum

48
New cards

min

49
New cards

max

50
New cards

or mean

51
New cards

groupby()

Groups data by categories for analysis

52
New cards

agg()

Applies multiple summary calculations at once

53
New cards

isnull()

Checks for missing values

54
New cards

dropna()

Removes rows or columns containing missing values

55
New cards

fillna()

Replaces missing values with a chosen value

56
New cards

replace()

Replaces incorrect or inconsistent values

57
New cards

sort_values()

Sorts a DataFrame by column values

58
New cards

merge()

Combines DataFrames using matching columns

59
New cards

inner join

Keeps only rows that exist in both DataFrames

60
New cards

left join

Keeps all rows from the left DataFrame and matching rows from the right

61
New cards

concat()

Combines DataFrames by stacking rows together

62
New cards

list comprehension

A short way to create or modify lists

63
New cards

zip()

Combines multiple lists into pairs

64
New cards

Plotly Express

A Python library used to create interactive visualizations

65
New cards

px.line()

Creates a line chart

66
New cards

px.scatter()

Creates a scatter plot

67
New cards

px.bar()

Creates a bar chart

68
New cards

px.histogram()

Creates a histogram

69
New cards

px.choropleth()

Creates a map visualizatio