2. 간단한 수식
2023. 4. 24. 22:35ㆍpython
print(2 + 3 * 4)
print((2+3)*4)
'''
14
20
'''
number = 2 + 3 * 4
print(number)
number = number + 2
print(number)
'''
14
16
'''
number += 2
print(number)
number *= 2
print(number)
number /= 2
print(number)
number -= 2
print(number)
'''
18
36
18.0
16.0
'''
number %= 5
'''
1.0
'''