2026fa_cse160/lecture20261020/inputs01.py
2026-10-20 13:22:27 -04:00

18 lines
No EOL
323 B
Python

data1 = input("Enter a value for data1 ")
data1 = float(data1)
data2 = float( input("Enter a value for data2 ") )
print("The value of data1 is ",data1)
print("The value of data2 is ",data2)
print("The type of data1 is ",type(data1) )
print("The type of data2 is ",type(data2) )
result = data1 * data2
print(result)