Skip to content

Chetans2004/Python-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My journey of learning Python from basics to advanced, with daily practice codes and notes.

##Day 1 -Basic of Python -Keywords -Identifiers
## 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: ==, !=, >, <, >=, <=
## Day 4 -Learned **String** -Single line String -Multi line string -Accessing Individul character from Starting -Accessing Individul character from last
## Day 5 -Learned ** more about String** -Slicing
## Day6 -Learned **String Formating**
## 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

Day 8 1. Lists

  • 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

Day 9 Tuples

  • Immutable sequences
  • Creating tuples: tup = (1, 2, 3)
  • Accessing elements and slicing
  • Counting elements with .count()

Day 10 Sets

  • Sets are mutable
  • Unindexed
  • Do not contain duplicates
  • Slicing is not allow

Day 11 :Loops in python

  • for loop
  • while loop

Day 12 :Learned about Loop Control Statements

  • break
  • continue
  • pass

Day 13 :Functions in Python

  • functions
  • functions with arguments

About

My journey of learning Python from basics to advanced, with daily practice codes and notes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages