str1 = 'roblox'
print('c' in str1) #원소 조회하기: str1 안에 'c'라는 문자가 있는지 검사
print('b' in str1)
str2 = 'minecraft'
print(len(str2)) #문자나 리스트의 길이를 확인하는 함수
print(len(str1))
#시퀀스의 더하기, 곱하기
a='mine' + 'craft'
print(a)
b=['r','o']+['b','l','o','x']
print(b)
c='wow'
print(c * 3)
d = ['g','o','o','d']
print(d * 2)
#연습문제
item1 = '네더라이트검'
item2 = '활'
item3 = '다이아몬드갑옷'
weapon = item1 + item2 + item3
print(weapon)
print('민준이의 무기는 ' + item1 + '과 ' + item2 + '과 ' + item3 + '입니다.')
To embed this project on your website, copy the following code and paste it into your website's HTML: