Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python - Coggle Diagram
Python
Loops
The for loop in Python is used to iterate over a sequence (like a list, tuple, or string) or other iterable objects
The three main types of loops in Python are - for loop, while loop, nested loop. Based on the condition provided, the while loop executes the statements inside the loop until the condition is true
Data types
Python Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, Python data types are classes and variables are instances (objects) of these classes. The following are the standard or built-in data types in Python:
Numeric – int, float, complex
Sequence Type – string, list, tuple
-
-
Set Type – set, frozenset
Binary Types – bytes, bytearray, memoryview
Data structures
Data Structures are a way of organizing data so that it can be accessed more efficiently depending upon the situation. Data Structures are fundamentals of any programming language around which a program is built. Python helps to learn the fundamental of these data structures in a simpler way as compared to other programming languages.
The four basic data structure types are linear data structures, tree data structures, hash data structures and graph data structures.
Pre defined functions
A function is a set of statements that take inputs, do some specific computation, and produce output. The idea is to put some commonly or repeatedly done tasks together and make a function so that instead of writing the same code again and again for different inputs, we can call the function. Functions that readily come with Python are called built-in functions. Python provides built-in functions like print(), etc. but we can also create your own functions. These functions are known as user defines functions.
Conditional statements
.
.
If statement is the simplest form of a conditional statement. It executes a block of code if the given condition is true.
Conditional statements in Python are used to execute certain blocks of code based on specific conditions. These statements help control the flow of a program, making it behave differently in different situations.