참고 : w3schools.com
a = "asdfasdf"
a[3] = "a"
TypeError: 'str' object does not support item assignment
b = a[2:5]
(끝은 생략가능)b = a[-5:-2]
a.find('r')
a.index('r')
은 위 기능과 동일하지만 해당 문자가 없으면 오류 발생a.capitalize()
a.upper()
& a.lower()
a.replace(old, new, idx)
a.strip()
(왼쪽은 l, 오른쪽은 r)a.split(char)
(char 기준으로 리스트로 쪼갬, 생략 시 스페이스바가 기준이 됨)sep.join(['a','b','c'])
print('scanf({layout},{variable});'.format('"%d"', '&a'))
# scanf("%d",&a);
a = 1
b = 2
c = 3
print(f'a : {a}, b : {b}, c : {c}')
# a : 1, b : 2, c : 3
# 변수가 아닌 모든 iterable 가능