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

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...