#출력함수 print()
print(2025)
print('안녕')

#f-string 문자열 안에 변수를 넣어서 사용하는 방법
name = '주현'
age = 12
print(name, age)
print('내 이름은',name)
print(f'내 이름은 {name}이고, 나이는 {age}살 입니다')

#탈출 문자 \역슬래시로 시작 
print('안녕!\n반가워') # \n 줄 바꾸기
print('이름\t나이') # \t 탭
print('경로 C:\\Python') #역슬래시 출력
print('I\'m') # '작은따옴표 출력
print("He said \"Hello\".") # "큰따옴표 출력

print('\n----문제----')
print('이름\t나이\n\'시헌\'\t12세')
print(f'이름\t나이\n\'{name}\'\t{age}세')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: