Simple addition calculator of two numbers.

Simple addition calculator by Python.

#Day2

Here is my another code of a small calculator which first take input from user and then second number then just add them both.

Please ignore other stuff as I told you I am a beginner.😊
#var1 ="70"
#var2 = 345
#var3 = 4
#var4 = 23.334
#var8 = "90"
#print(100*str(int(var1)+int(var8)))
"""
str()
int()
float()
"""
#print(10 * "hello world\n")
print("enter your first number")
x = input()
print("you entered", int(x))
print("enter your second number")
y = input()
print("your addition is", (int(x)) + int(y))

Comments

Popular posts from this blog

Shopping Bill Generator In python.

Should we start preparation for BCA/MCA from class 11th ? How ?

Python program to check that a list have elements in it or not .