파이썬 2일차

PRESENT_22·2023년 8월 6일
0

python

목록 보기
8/8
result = 4//2
print(result)
print(type(result))

result /=2
print(result)
print(type(result))

score = 0   #int
height =1.8  #float
isWinning = True #boolean

# F-string

print(f'your score is {score} , your height is {height}, your winning {isWinning}')

print("your score is " + str(score) + ", your height is " + str(height) + ",  your winning: " + str(isWinning))

연산자는 java와 같은데
// 날림처리
** 제곱
반올림 (round)

f- string
f' {변수}'

+string 로 형변환하는 이유

0개의 댓글

관련 채용 정보