'''
자료형
- 정수형
- 실수형
- 문자열
- 리스트
'''
print('안녕하세요') #출력하는 함수
#변수: 자료형들을 저장하는 공간
#변수이름 = 13
age = 13
age = 20
print(age)
#사칙연산
print(3+5)
print(5-4)
print(3*4)
str1 = '안녕'
str2 = '하세요'
print(str1 + str2)
print(str1*3)
a = int(input()) #입력받는 함수
b = int(input())
# print(a+b)
result = a+b
print(result)
#문자열/리스트 원소 - 인덱스, 인덱싱, 슬라이싱
#인덱스: 원소의 순서(번호)
#인덱싱: 인덱스를 가지고 원소를 찾는 것
print("hello"[1])
number = [1, 5, 10, 15]
print(number[3])
animal = ['토끼', '사자', '닭']
animal[0] = '도마뱀'
print(animal)
#슬라이싱: 내가 원하는 자료만 잘라서 들고 오는 것
numbers = [2, 4, 6, 8, 10, 12, 14]
print(numbers[2:5])
To embed this project on your website, copy the following code and paste it into your website's HTML: