https://learnpythonlanguagesi.blogspot.com/ is a programming tutorials / educational site containing video and text based tutorials for Python programming. Which help people to learn python language easily.
Addition of two numbers in python
Get link
Facebook
X
Pinterest
Email
Other Apps
-
Addition of two numbers in python ;- It is very easy to add two numbers in python and the code are as follow
print('\t \t \t Add to Numbers ') n1 = input("\n Enter first number = ") n2 = input("\n Enter the second number = ") add = float(n1) + float(n2) print(" \nThe sum of two number is = ", add)
The Square Root of the given number print('\t\t\t\t Square Root') a = input("Enter a number = ") sq = float(a) ** 0.5 print("\n The Square Root of the number is = ", sq)
Comments
Post a Comment