Python

What I Learned

1.Python Variables
- Variables are containers for storing data values. Ex Code ( p= Python )
2. Python Data Types
- In programming, data type is an important concept. Ex ( string, integer, float, list, range )
3. Python Numbers
- Variables of numeric types are created when you assign a value to them Ex ( integer, float )
4. Python Strings
- Python Strings are surrounded by either single quotation marks, or double quotation marks. Ex Code ( print("Hello") )
5. Python Operators
- Operators are used to perform operations on variables and values. Ex ( %s %d %f )
6. Python Lists
- There are four collection data types in the Python programming language Ex Code ( thislist = ["apple", "banana", "cherry"] )
7. Python If Elif Else Statements
- Python is the usual logical conditions from mathematics: Ex Code ( if b > a: print("b is greater than a") )
8. Python Loops
- Python has two primitive loop commands: Ex Code ( i = 1 while i < 6: print(i) i += 1 )
9. Python Functions
- A function is a block of code which only runs when it is called. Ex Code( def my_function():print("Hello from a function") )