1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| > first_number = int(input("Enter number1 : "))
Enter number1 : 20
> second_number = int(input("Enter number2 : "))
Enter number2 : 15
> total = first_number + second_number
> print("fist_number + second_number : ", total)
fist_number + second_number : 35
> float_number = float(input("Enter a float number : "))
Enter a float number : 15
> print("input float : ", float_number)
input float : 15
> print("input type : ", type(float_number))
<class 'float'>
|