1. 자료형: 숫자형
<입력>
a = 10
print(a)
a = -2
print(a)
a = 0
print(a)
<출력>
10
-2
0
<입력>
a = 156.23
print(a)
a = -10.53
print(a)
a = 2.
print(a)
a = -.2
print(a)
<출력>
156.23
-10.53
2.0
-0.2
<입력>
a = 1e9
print(a)
a = 75.25e1
print(a)
a = 3594e-3
print(a)
<출력>
1000000000.0
752.5
3.954
<입력>
a = 0.3 + 0.6
print(a)
if a == 0.9:
print(True)
else:
print(False)
<출력>
0.8999999999999999
False
<입력>
a = 0.3 + 0.6
print(round(a, 4))
if round(a, 4) == 0.9:
print(True)
else:
print(False)
<출력>
0.9
True
a = 7
b = 3
<입력>
print(a / b)
print(a % b)
print(a // b)
<출력>
2.3333333333333335
1
2
<입력>
a = 5
b = 3
print(a ** b)
<출력>
125
x=10
under_20=x<20
print("under_20:", under_20)
print("not under_20:", not under_20)