1/15
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
print()
outputs text or variables to the console
input()
reads user input from the console
len()
determines the length of a sequence (e.g., string, list, tuple)
type()
returns the type of an object
int(), float(), str()
converts values to integers, floats, or strings, respectively
max()
returns the maximum value from a sequence
min()
returns the minimum value from a sequence
sum()
calculates the sum of elements in a sequence
abs()
returns the absolute value of a number
range()
generates a sequence of numbers
sorted()
returns a sorted list from an iterable
any(), all()
checks if any or all elements in an iterable are true
map(), filter()
applies a function to elements or filters elements based on a function
open(), read(), write()
handles file I/O operations
dir()
lists the names in the current scope or attributes of an object
help()
provides help information about an object or Python