Sunday, May 31, 2020

Python Class 137 (Simple Interest) - Kapil Sharma


print(" *** Simple Interest Application Calculator *** ")

print ("\n")

#SI = = P(1 + rt)

#SI - Simple Interest, P  - Principal, R  - Rate, T  - Term

P = float(input("Please enter the Principal amount value: "))
R = float(input("Please enter the Rate of interest value: "))
T = float(input("Please enter the Terms in years count: "))

RV = R/100

SI1 = 1+RV*T

SI2 = P * SI1

print(SI2)




===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Saturday, May 30, 2020

Python Class 136 (Net Asset Value) - Kapil Sharma

print(" *** Net Asset Value Application *** ")

print("\n")

#The net value of an asset = (Total asset – total liabilities)/ total outstanding shares

TAV = float(input("Please enter the Total Asset Value: "))
EL = float(input("Please enter the Existing liabilities: "))
OU = float(input("Please enter the Outstanding units: "))

NAV1 = TAV-EL

NAV2 = NAV1/OU

print("The Net Asset Value is:", NAV2)





===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Thursday, May 28, 2020

Python Class 135 (Absolute returns) - Kapil Sharma

#Absolute returns of a Mutual Fund:-

AV1 = float(input("Please enter the appreciated value:"))
PV2 = float(input("Please enter the purchased value:"))

ARV = ((AV1 - PV2)*100/PV2)

print ("The absolute return value is (ARV):",ARV,"%")


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Monday, May 25, 2020

Python Class 134 (Yield) - Kapil Sharma

#Yield Calculator Application:-

def Yield_function1(n1,n2):
            return (n1*n2)
 
MV1 = float(input("Please enter the monthly dividend value:"))
TM2 = float(input("Please enter the total month count:"))

print ("The annual yield value is (AYV):" , (Yield_function1(MV1,TM2)))

print("\n")

def Yield_function2(n1,n2):
            return (n1/n2)
 
AYV2 = float(input("Please enter the annual yield value (AYV):"))
CV1 = float(input("Please enter the current value:"))

print ("The annual yield value is (AYV) %:" , (Yield_function2(AYV2,CV1)))



===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Python Class 133 (Mean) - Kapil Sharma

#Mean Function Example: 

def Mean_function(n1,n2): return (n1/n2) MV1 = float(input("Please enter sum of terms value:"))
TV2 = float(input("Please enter number of terms value:")) print ("The mean value is (m):" , (Mean_function(MV1, TV2)))


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg



Saturday, May 23, 2020

Python Class 132 (Density) - Kapil Sharma


#Example of Density per cm*3 function:- 

def Density_function(n1,n2):
              return (n1/n2)

MV1 = float(input("Please enter total mass value:"))
VV2 = float(input("Please enter total volume value:"))

print ("The density is (p):" , (Density_function(MV1, VV2)), "g/cm3")


Python Class 131 - Kapil Sharma


#Example of Average velocity function:- 

def AverageVelocity_function(n1,n2):
              return (n1/n2)

DV1 = float(input("Please enter travel distance cover value:"))
TV2 = float(input("Please enter travel time taken value:"))

print ("The average is:" , (AverageVelocity_function(DV1, TV2)))


Python Class 130 - Kapil Sharma

#Example of Rectangle Area function:- 

def Rectangle_area(n1,n2):
                   return (n1*n2)

WV1 = float(input("Please enter width value:"))
LV2 = float(input("Please enter length value:"))

print ("Area of the triangle is:" , (Rectangle_area(WV1, LV2)))




Friday, May 22, 2020

Python Class 129 - Kapil Sharma

#Example of percentage function:- 

def percentage_function(n1,n2):
    return (n1/100*n2)

uv1 = float(input("Please enter the first value:"))
uv2 = float(input("Please enter the second value:"))

print(percentage_function(uv1, uv2))



===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Thursday, May 21, 2020

Python Class 128 - Kapil Sharma

#Squire Function Example: -


def create_squires(n1,n2):
return (n1**n2)

uv1 = float(input("Please enter the first value:"))
uv2 = float(input("Please enter the second value:"))


print(create_squires(uv1, uv2))


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Wednesday, May 20, 2020

Python Class 127 - Kapil Sharma

#Percentage Function Example: -


def percentage_function(n1, n2):
    return (n1/n2*100)

uv1 = float(input("Please enter first value: "))
uv2 = float(input("Please enter second value:"))

result = percentage_function(uv1,uv2)
print(result)


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Tuesday, May 19, 2020

Python Class 126 - Kapil Sharma

#Divide function exmaple:- 

def divide_function(num1, num2):
    return num1/num2


Nv1 = float(input("Please enter first amount:"))
Nv2 = float(input("Please enter second amount:"))

result = divide_function(Nv1, Nv2)
print(result)

Code Snippet




===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Python Class 125 - Kapil Sharma

#Multiply function exmaple:- 

def multiply_function(num1, num2):
    return num1*num2


Nv1 = float(input("Please enter first amount:"))
Nv2 = float(input("Please enter second amount:"))

result = multiply_function(Nv1, Nv2)
print(result)

Code Snippet




===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Python Class 124 - Kapil Sharma


def subtract_function(num1, num2):
                         return num1-num2


Nv1 = float(input("Please enter first amount:"))
Nv2 = float(input("Please enter second amount:"))

result = subtract_function(Nv1, Nv2)
print(result)

Code Snippet


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Monday, May 18, 2020

Python Class 123 - Kapil Sharma

def add_function(num1, num2):
    return num1+num2


Nv1 = float(input("Please enter first amount:"))
Nv2 = float(input("Please enter second amount:"))

result = add_function(Nv1, Nv2)
print(result)



===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Sunday, May 17, 2020

Python Class 122 - Kapil Sharma



from pip._vendor.distlib.compat import raw_input

print("\n")
print("*** Welcome to Bank Financial Software Solutions *** ")
print(" \t ** This is a addition calculator ** ")
print("\n")

Uvalue1 = float(raw_input("Please enter the first rupee value, user wants to add: \n"))
Uvalue2 = float(raw_input("Please enter the second rupee value, user wants to add: \n"))
Result = (Uvalue1 + Uvalue2)
print("\n")

print("The two amount addition sum is:", Result, "Rupees", "\n")

=====================================================

from pip._vendor.distlib.compat import raw_input

print("\n")
print("*** Welcome to the Store Inventory Management Software Solutions *** ")
print(" \t ** This is a Store Inventory Management Program ** ")
print("\n")

Inventory1 = ["Rice", "Maze", "Oil", "Toothpaste", "Beans", "Cloth", "Pepper"]
print("Here are present items list information:", Inventory1)

CheckInv1 = input('Is this item present in the inventory: \n')

if CheckInv1 in Inventory1:
print("This item is present in the inventory list.")
else:
print("User entered item is not present in the list.")

Thanks to user: https://stackoverflow.com/users/2897372/

===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Saturday, May 16, 2020

Python Class 121 - Kapil Sharma


from pip._vendor.distlib.compat import raw_input

myValue1 = float(raw_input("Please enter the first value, user wants to add:"))
myValue2 = float(raw_input("Please enter the second value, user wants to add:"))
Result = (myValue1 + myValue2)
print(Result)


==================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Friday, May 15, 2020

Python Class 120 - Kapil Sharma


def square(num):
    return num**2my_nums = [1,2,3,4,5]
for item in map(square,my_nums):
    print(item)

==================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Thursday, May 14, 2020

Python Class 119 - Kapil Sharma

#Zip operator example:-


myLst1 = ["Reddit","Twitter","Facebook"]
myLst2 = [1,2,3]
myLst3 = ["TV", "Internet", "VOD"]
for myLst in zip(myLst1,myLst2,myLst3):
print(myLst)

==========================================

#To find temperature in Fahrenheit:-

from pip._vendor.distlib.compat import raw_input
mytemp1 = float(input("Please enter the temperature in Celsius:"))
fH = ((9/5*mytemp1 + 32))print(fH)

===================================

#To find the first letter using (.split) function from any sentence:-

kt = "Print't, that the King of this kingdom is keeping his good deeds."
print(kt)
for word1 in kt.split():
    if word1[0] =="k" or word1[0] =="K":
        print(word1)


==================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Wednesday, May 13, 2020

Python Class 118 - Kapil Sharma

index_count = 0
mCar1 = ["BMW", "Tesla", "Ford"]
for mycar in mCar1:
    print([index_count],"-","Car Maker Name:", mycar)
    index_count +=1

==========================================


https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Monday, May 11, 2020

Python Class 116 - Kapil Sharma

myFood=['bread','milk','rice']

print(myFood)
for food in myFood:
    print("I want " + food + ".")
====================================

myFriends = ["Puneet", "Himanshu", "Dushyant", "Mohit"]
for mybuddy in myFriends:
    print(myFriends, 'are my friends.')

==================================

K =1
while K < 10:
      print(K)
      K += 1

======================

number = 0
while number <= 9:
    number += 1
    print("Loop count:", number)

======================

from pip._vendor.distlib.compat import raw_input

myName = raw_input("Please enter your name: ")

while myName == "Kapil":
    print("You entered the correct name.")
    break
else:
    print("Wrong Input")
==========================================


https://github.com/bornfreesoul/PythonLessons https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Sunday, May 10, 2020

Python Class 115 - Kapil Sharma

#For Loop Example - 1:
my_Money5 = ["Dollar","Rupee","Ruble"]

for Money in my_Money5:
      print (Money, "Currency")
      
#For Loop Example - 2:
for i in range(1000):
    print ("i= ", i)
    if (i == 999):
        break

#While Loop:
count = 0
while count < 10:
    print("Count is less than ten.", count)
    count+=1

Saturday, May 9, 2020

Python Class 114 - Kapil Sharma

#elif statement example:

from pip._vendor.distlib.compat import raw_input

myInfo = float(raw_input("Please enter the price: "))

if myInfo >= 1000:
    print("Good Price")
elif myInfo <= 1000:
    print("Low Price")
else:

Python Class 11 3 - Kapil Sharma

#If-Statement and it's example:
from pip._vendor.distlib.compat import raw_input
myMoney = ['Dollar', 'Pound', 'Rupee', 'Ruble']
myInfo = raw_input("Which currency you want to buy: ")

if myInfo in myMoney:
    print("Present")
else:
    print("No, currency")
    
#Second Example:
myInfo = 4000

if myInfo>3800:
    print("Good Price")
else:
    print("No, Price")

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

Python Class 112 - Kapil Sharma



#Sets are random array of unique datasets myData1 = [1,2,3,4,5,4,3,2,1]my_result = set(myData1)print(my_result)

#Example-2: myData2 = {'iphone':900, 'Samsung': 750, 'Google': 200}print(myData2)print(myData2['iphone'])print('LG' in myData2)print('LG' not in myData2)



#Operators example-3:

print(5<7)
print(5>7)
print(5<=7)
print(5>=7)

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg



Friday, May 8, 2020

Python Class 111 - Kapil Sharma

#List[] is same like Array (series) of random data and its changeable (mutable)
myFoods1 = ["Bread","Wheat","Rice"]
print(myFoods)
print(myFoods[2])
myFoods.append("Garlic")
print(myFoods)
myFoods.pop(1)
print(myFoods)

myFoods2 = ["Bread","Wheat","Rice"]
print(myFoods2[0:2])
print(myFoods2[:1])
print(myFoods2[0:])

#length, maximum, minimum functions
myPhone1 =["Samsung", "Apple", "LG"]
print(myPhone1)
print(len(myPhone1))
print(max(myPhone1))
print(min(myPhone1))
print(sorted(myPhone1))
print(sorted(myPhone1,reverse=True))

#Raw Input feature
from pip._vendor.distlib.compat import raw_input

name1 = raw_input("Please enter your age:")

Python Class 110 - Kapil Sharma


#Printing Strings
print("Hello World!")
#Print Addition
myData1 = 4 + 5
print(myData2)
#Print Subtraction
myData2 = 4 - 5
print(myData2)
#Print Multiply
myData3 = 4 * 5
print(myData3)
#Print Divide
myData4 = 4 / 5
print(myData4)
#Printing Variables
myData5 = 45
print(myData5)
#Printing Float
myData6 = 45.5
print(myData6)
#Printing Alpha Numeric Output
Model_number = 1234098
OEM = "Samsung"
Screen_size = 6.5
Avaiable = True
print("Model Number:",Model_number,"\n","OEM Details:", OEM)

Blockchain: 101 (By - Kapil Sharma)

 https://testing-mines.blogspot.com/2021/10/blockchain-101-by-kapil-sharma.html Blockchain through the following attributes: Distributed:  T...