Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python - Coggle Diagram
Python
pre defined functions
what are pre defined functions?
built into the software and does not need to be created by a programmer
The top 10 built-in functions are abs, chr, dict, enumerate, float, len, list, ord, range, and set.
)
loops
A for loop in Python is used to iterate over a sequence (list, tuple, set, dictionary, and string). Example: The preceding code executes as follows: The variable i is a placeholder for every item in your iterable object. The loop iterates as many times as the number of elements and prints the elements serially.
data structures
Python data structures are essentially containers for different kinds of data. The four main types are lists, sets, tuples and dictionaries.
data types
Some built-in Python data types are:
Numeric data types: int, float, complex.
String data types: str.
Sequence types: list, tuple, range.
Binary types: bytes, bytearray, memoryview.
Mapping data type: dict.
Boolean type: bool.
Set data types: set, frozenset.
conditional statements
If statement is the simplest form of a conditional statement. It executes a block of code if the given condition is true. age = 20 if age >= 18: print("Eligible to vote.") print("Eligible to vote.")