D522: Python Built-in Functions and Operations

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

print()

outputs text or variables to the console

2
New cards

input()

reads user input from the console

3
New cards

len()

determines the length of a sequence (e.g., string, list, tuple)

4
New cards

type()

returns the type of an object

5
New cards

int(), float(), str()

converts values to integers, floats, or strings, respectively

6
New cards

max()

returns the maximum value from a sequence

7
New cards

min()

returns the minimum value from a sequence

8
New cards

sum()

calculates the sum of elements in a sequence

9
New cards

abs()

returns the absolute value of a number

10
New cards

range()

generates a sequence of numbers

11
New cards

sorted()

returns a sorted list from an iterable

12
New cards

any(), all()

checks if any or all elements in an iterable are true

13
New cards

map(), filter()

applies a function to elements or filters elements based on a function

14
New cards

open(), read(), write()

handles file I/O operations

15
New cards

dir()

lists the names in the current scope or attributes of an object

16
New cards

help()

provides help information about an object or Python