본문 바로가기

Python 🎧

[python] F-string 사용법

f-string 이란 formatted stirng literal 의 약자라고 한다

사용법
- 문자열 앞에 f 를 붙임

score = 0
height = 1.8
isWinning = True

#f-string
print(f"your score is {score}, your height is {height}, you ar winning is {isWinning} ")