프로그래밍언어/Python

파이썬 스트링

개발자명백 2023. 3. 9. 15:39

fstring : 

name = '홍길동'
age = '30'

hello = f'제 이름은 {name}이고요 나이는 {30}입니다.'
print(hello)