base = "{}번 손님, {}{}에오신것을{}!"
new_way = base.format(number,greeting,place,welcome)
base.format 이란
base에 있는 중괄호에 format()함수라는것에
() ->소괄호 안에 있는 내용을 차례대로 대입시키는 것을 말한다.
ex)
mine = '가위'
yours = '바위'
result = '졌다'
print('나는{}, 너는{}, 그래서{}').forma(mine,yours,result))
결과 -> 나는 가위, 너는바위, 그래서 졌다
이런식으로 대입된다.