Python 🎧
[python] F-string 사용법
소로리 산적
2024. 8. 4. 03:19
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} ")