<jupyter_start><jupyter_text>the various function of python<jupyter_code>list1=[135,462,27,2753,234]
list1.index(27)
list.index(50)
if 50 in list1:
    list1.index(50)
list2 =[1,2,3]+[4,5,6]
list2
list1
list1.extend([9,10,11])
list1
list1.insert(2,999)
list1
list1.insert(-1,9999)
list1
list1.insert(10000,555)
list1
list1.sort()
list1<jupyter_output><empty_output><jupyter_text>string & list<jupyter_code>my_list=[1,2,3,4,5,6]
my_list[0]
my_list[1]
str="hello world"
str[0]
3 in my_list
7 in my_list
"h" in str
my_list.index(5)
str.index("r")
characters=list('abcdef')
characters
words= 'hello world is the site useful for learning the code'
words_list=words.split()
words_list
time_str="10:35:27"
time_list=time_str.split(":")
time_list
":".join(time_list)
"".join(words_list)
str = "오늘은 날씨가 흐림"

words=str.split()
words
position=str.index("흐림")
position
new_str="".join(words)
new_str<jupyter_output><empty_output><jupyter_text>slicing<jupyter_code>list=[1,2,3,4,5]
list[1]
text="hello world"
text[1]
text[1:5]
list=["영","일","이","삼","사","오"]
list[1:3]
list[2:len(list)]
list[:2]
list[2:]
list[:]
list1=[31,4632,7235,23,61]
list2=[]<jupyter_output><empty_output><jupyter_text>slice의 스텝<jupyter_code>list1=list(range(20))
list1<jupyter_output><empty_output><jupyter_text>slice로 리스트 수정하기<jupyter_code>numbers=[0,1,2,3,4,5,6,7,8,9,10]
numbers
del numbers[0]
numbers
numbers[:5]
del numbers[:5]
numbers
numbers[1:3]

numbers[1:3]=[77,88]
numbers<jupyter_output><empty_output><jupyter_text>자료형 다루기<jupyter_code>s="Hello World"
type(s)
f=3.14
type(f)
i=42
type(i)
type(42.0)
42 == 42.0
isinstance(42,int)
isinstance(42,float)
isinstance(42.0,int)<jupyter_output><empty_output><jupyter_text>인스턴스 이해<jupyter_code>type(5)
isinstance(5,float)
numbers1=[]
type(numbers1)
numbers2=list(range(10))
characters=list("hello")
type(numbers2)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18318965517241378, 'fraction_numerical': 0.09213362068965517, 'mean_word_length': 11.217105263157896, 'pattern_counts': {'":': 2, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '159539', 'license': 'MIT', 'n_tokens_mistral': 958, 'n_tokens_neox': 918, 'n_words': 121, 'path': 'python/programmers_1227_1.ipynb', 'repo_name': 'MinJiH/TIL', 'size': '1856'}