100Daysofcode
Hello everyone this repo contains my 100 days of learning python.
Install / Use
/learn @Utshav-paudel/100DaysofcodeREADME
100Daysofcode
Welcome to my journey of 100 days of coding . I will be documenting my journey from zero to advance in python
| Projects Completed|
| -------- |
|1.Rock,paper and scissors|
|2.Kaun bangega crorepati |
|3.Coffee machine|
|4.Betting on turtle race game|
|5.Snake game|
|6.Mile to km app|
|7.Pomodoro app|
|8.Password manager app|
|9.Flash card app|
|10.Kanye West Quote generator app|
|11.Iss satellite checker|
Core python
|Core python| |---------------| |1.Language Fundamentals| |2.Operators| |3.Input and Output statements| |4.Flow Control| |5.Strings| |6.List Data Structure| |7.Tuple Data Structure| |8.Set Data Structure| |9.Dictonary Data Structure| |10.Functions| |11.Modules| |12.Packages|
Day 1
<p>Today I learned some basics in python like data types in python and about typecasting in python. There are two types of typecasting in python </P> 1.Implicit typecasting: conversion data types by program itself for e.g: a=10
b=2.0
sum=a+b
print(sum)
#sum will be in float because of implicit typecasting
- Explicit typecasting: conversion of data types by programmer is called explicit typecasting . for e.g : <break>
a=10
b=2
sum=a+b
print(float(sum))
#sum is in integer and changed to float using explicit typecasting
Day 1 project Calculator :

Day 2
<p>Here is day2 codes I have learned about string slicing . String in python is similar to array . </p>
name="Elephant"
length=len(name) #this len function provides the length of name
print(name[2:3]) #this print e
print(name[1:5]) #this print leph
#this above example is string slicing
Greeting program
<p>This program greet you according to your time . It import time from your computer usingimport time
Then it convert time into string using
strftime()
After that greeting is done using elif codition as seen below :

Day3
Match case statement
Match case is similar to switch case in c and c++ but there is no necesary of using break
If you donot know about c and c++
Match case is used to select case according to option here is a sample program:

Day4
List
It is a sequence data types in python that is a collection of sequence of elements. for e.g:
lst=[1,2,56,"hari","alex",false]
Yes as you can see list can contains different data types.
Tuples is also similar to list but it cannot be changed (i.e immutable)
Clear explanation of list is shown below

List method
There are various method to perform with list that help in program some of them are:
list.sort()
It sort the list in ascending order

list.index()
It gives index of first occurence of the list item

here output will be 1 for colours list and 3 for num list .
list.count
It counts number the number of items of given value
for e.g colors.count("green")
This will count number of time green occured in list colors
All others important list method are as follows :


Day5
Today we are going to learn about the tuples in python . Tuples are similar to list but it is immutable(i.e it cannot be changed). It also hold collection of data items . Tuples items are separated with comma and enclosed with small brackets for e.g:
tuple=(1,4,6,7)
tuple=(1)
print(type(tuple)) #this is printed as class int it should contain one , to be tuple
tuple=(1,)
print(type(tuple)) #this is printed as class tuple
Note : Tuples cannot be changed it is constant and use in cases where we want constant list .

Day6
Today I learned about the method on tuples . Tuples exactly is immutable so it does not have any method that changes data item but we can perform this by changing tuples into list changing data items and changing it to tuples . Although we can perform some operation like index,len,etc . Code for the method in tuples is shared below hope you get some insights .

Day7
f-string
f-string is a new string formatting mechanism that allow us to enter variable directly in between the string according to our format. for e.g:
val="geek"
print(f"{val} for {val} is a portal for {val}")

Docstrings
Python docstrings are the string literals that appears right after the definition of function,class,method or module. Its like comment but its not ignored by python interpreter and cannot be used anywhere it mostly used to describe function workflow

PEP 8
PEP 8 is a guidline in python programming that makes python readable,maintainable and consistent . It stands for Python Enhancement Proposals
Set
Set is an unordered collection of data items in a single variable enclosed by curly braces and element separated by comma . Set doesnot contain duplicate item

Day8
Recursion
Recursion is the special case in which function call itself directly or indirectly to meet desired result. such function is called recursive function

Day9
Methods on sets
1.union() and update()
union() helps to find the union of two sets and update helps to update the sets value.
s1={1,4,5,7,9}
s2={1,4,6,7,8,9}
print(s1.union(s2))
s1.update(s2)
print(s1)
.png)
2.intersection() and intersection_update()
intersection() finds common value of two sets wherease intersection_update() update the sets with intersection.
.png)
3.symmetric_difference() and symmetric_difference_update()
symmetric_difference() gets items that are not similar on two sets and symmetric_difference_update() the sets with different items of two sets
.png)
4. difference() and difference_update()
difference() gets items that are not similar from original sets and difference_update() update the sets with difference items from original sets.
.png)
Day10
Other sets methods
Some of other sets methods that we can use are:

Day11
Dictionaries in python
Dictionaries are ordered collection of data items. They store multiple items in a single variable.Dictionaries items are key-value pairs that are
