## Day 2 - Learned about **input() function** - Understood **variables** (used to store data) - Studied different **data types**: - int, float, str, bool
## Day 3
- Learned **type casting operators**: int(), float(), str(), bool()
- Learned operators:
- Arithmetic: +, -, *, /, //, %, **
- Assignment: =, +=, -=, *=, /=, //=, %=
- Comparison: ==, !=, >, <, >=, <=
- Arithmetic: +, -, *, /, //, %, **
- Assignment: =, +=, -=, *=, /=, //=, %=
- Comparison: ==, !=, >, <, >=, <=
## Day 4 -Learned **String** -Single line String -Multi line string -Accessing Individul character from Starting -Accessing Individul character from last
## Day 7 - Control Statements in Python
Today I learned about control statements in Python, which help us control the flow of our program:
- if
- if-else
- elif
- Nested if
- Examples
- Checking even or odd numbers
- Grade calculation based on marks
- Leap year checking</h6
- Creating lists
- Accessing elements using indexing
- Slicing lists
- Updating elements (mutable objects)
- List methods:
append()
,pop()
,remove()
, etc. - Nested lists (lists of lists)
- Example: 3x3 matrix with user input to update elements
- Immutable sequences
- Creating tuples: tup = (1, 2, 3)
- Accessing elements and slicing
- Counting elements with .count()
- Sets are mutable
- Unindexed
- Do not contain duplicates
- Slicing is not allow
- for loop
- while loop
- break
- continue
- pass
- functions
- functions with arguments