Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python - Coggle Diagram
Python
Data Types
Python data types identify the type of data that a variable can store. Besides, a variable is basically an object or an element that we store in the memory. This variable stores different types of values. Hence, the data type decides the type of a value. Every value in python belongs to a different data type.
Set data types: set, frozenset.
-
-
Binary types: bytes, bytearray, memoryview.
Sequence types: list, tuple, range.
-
Numeric data types: int, float, complex.
Conditional Statements
A conditional statement in Python determines the flow of code execution and its direction based on certain conditions. It decides the control flow of a Python program according to the output of the given condition.
Pre defined functions
A predefined function is a function that has already been written in the programming language and can be used by the programmer. A function will return a value that can be stored in a variable or sometimes in a conditional statement.
Data Structure
Data structures are a way of organizing and storing data so that they can be accessed and worked with efficiently. They define the relationship between the data, and the operations that can be performed on the data.
-
-
-
-
Loops
A for loop in Python is a control flow statement that is used to repeatedly execute a group of statements as long as the condition is satisfied. Such a type of statement is also known as an iterative statement.
Types of loops
:
For Loop. A for loop in Python is used to iterate over a sequence (list, tuple, set, dictionary, and string). Flowchart: ...
While Loop. The while loop is used to execute a set of statements as long as a condition is true. ...
Nested Loop. If a loop exists inside the body of another loop, it is called a nested loop.