반응형
print( "hi hi hi hi hi hi " ) # strings / space
print( 3+ 5 ) #a space doesn't affect the result
print( 5-3 ) # subtraction
print( 3*5 ) # multiplication
print( 3**5 ) # exponents
print ( 3/5 ) # 0.6 division -float
print( 3//5) # 0 integer
print ( 3%5 ) # 3 the remainder
print ( 5%3 ) # 2 the remainder
OUTPUT
L/Python text/HelloWorld.py"
hi hi hi hi hi hi
8
2
15
243
0.6
0
3
2
PS C:\Users\user>
'Python' 카테고리의 다른 글
comment -Python (open) (0) | 2022.11.06 |
---|---|
Python 1. code directly in the Python terminal (open) (0) | 2022.11.03 |