Skip to content

xWhaler/Python-Data-Structures

Repository files navigation

CSC-212 Data Structures

files, programs & resources

Python Built-in Functions

Function Description
abs() Returns the absolute value of a number
all() Returns True if all elements in an iterable are true
any() Returns True if any element in an iterable is true
ascii() Returns a string with ASCII representation of an object
bin() Converts an integer to a binary string
bool() Converts a value to a Boolean (True or False)
breakpoint() Enters the debugger at the calling point
bytearray() Returns a mutable array of bytes
bytes() Returns an immutable array of bytes
callable() Checks if an object is callable
chr() Converts an integer to a character
classmethod() Converts a method into a class method
compile() Compiles source code into a code object
complex() Creates a complex number
delattr() Deletes an attribute from an object
dict() Creates a dictionary
dir() Returns a list of an object's attributes and methods
divmod() Returns quotient and remainder of division
enumerate() Returns an enumerate object with an index
eval() Evaluates a Python expression from a string
exec() Executes dynamically created Python code
filter() Filters elements of an iterable based on a function
float() Converts a value to a floating-point number
format() Formats a value into a string
frozenset() Creates an immutable set
getattr() Gets an attribute from an object
globals() Returns a dictionary of the current global scope
hasattr() Checks if an object has a given attribute
hash() Returns the hash value of an object
help() Opens the interactive help system
hex() Converts an integer to a hexadecimal string
id() Returns the memory address of an object
input() Gets user input from the console
int() Converts a value to an integer
isinstance() Checks if an object is an instance of a class
issubclass() Checks if a class is a subclass of another class
iter() Returns an iterator from an iterable
len() Returns the length of an object
list() Creates a list
locals() Returns a dictionary of the current local scope
map() Applies a function to every element in an iterable
max() Returns the largest value in an iterable
memoryview() Returns a memory view object
min() Returns the smallest value in an iterable
next() Retrieves the next item from an iterator
object() Creates a new object
oct() Converts an integer to an octal string
open() Opens a file and returns a file object
ord() Converts a character to its Unicode code point
pow() Returns the power of a number (x^y)
print() Prints output to the console
property() Returns a property attribute
range() Generates a sequence of numbers
repr() Returns a string representation of an object
reversed() Returns a reversed iterator
round() Rounds a number to a given number of decimals
set() Creates a set
setattr() Sets an attribute on an object
slice() Creates a slice object
sorted() Returns a sorted list from an iterable
staticmethod() Converts a method into a static method
str() Converts a value to a string
sum() Returns the sum of an iterable
super() Returns a proxy object for accessing parent class methods
tuple() Creates a tuple
type() Returns the type of an object
vars() Returns the __dict__ attribute of an object
zip() Combines multiple iterables into tuples
__import__() Imports a module dynamically

About

Python-dsa holds coursework and projects from CSC-212 Data Structures at Southern CT University.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published