Updated add for ints
parent
50247309aa
commit
8b80284979
|
@ -1,8 +1,18 @@
|
||||||
|
|
||||||
data1 = 4
|
data1 = input("Enter a value for data1: ")
|
||||||
data2 = 11
|
data1 = int(data1)
|
||||||
|
|
||||||
|
data2 = input("Enter a value for data2: ")
|
||||||
|
data2 = int(data2)
|
||||||
|
|
||||||
|
print("Data1 is ",type(data1))
|
||||||
|
print("Data2 is ",type(data2))
|
||||||
|
|
||||||
result = data1 + data2
|
result = data1 + data2
|
||||||
|
print("Result is ",type(result))
|
||||||
|
|
||||||
|
print("The sum is ",result)
|
||||||
|
|
||||||
print(f"The sum is {result}")
|
print(f"The sum is {result}")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue