#print() 출력 함수
print('hello world!')

print('안녕')
print('하세요')

print('hello','world')

print("I'm") #설명
print('"hello"')

#주석 : 컴퓨터가 인식하지 않는 문장
'''
여러 줄 주석
'''
"""여러 줄 주석"""

print('----문제1----')
print('바: 바밤바는')
print('밤: 밤이 들어간')
print('바: 바이다')

print('----파이썬 기본 자료형----')
#type() 자료형 출력 함수
#1. 숫자형
#정수 int 소수점이 없는 숫자
print(2025)
print(type(2025))

#실수 float 소수점이 있는 숫자
print(3.14)
print(type(3.14))

#2. 문자열 str '' ""
print("문자열")
print(type('문자열'))

#3. 리스트 list [] 여러 값을 묶어서 사용하는 자료형
#리스트 안에는 숫자형, 문자열, 리스트를 전부 넣을 수 있다
print([-5, 3.7, 'ans', "문자", [6, 7, 8]])
print(type([-5, 3.7, 'ans', "문자", [6, 7, 8]]))

#4. 부울 bool - True, False
print(3 > 5)
print(2 < 7)

print('----문제2----')
print([15, '학교', '이름'])
print(type([15, '학교', '이름']))

Embed on website

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