#split: 나누다. join: 합치다.
str1 = "I am minjun"
str2 = "imlikemsteak"
print(str1.split(" "))
#split: 문자열 -> 리스트로 쪼개기
#join: 쪼개져있는 리스트 -> 문자열 합치기
list1 = ["I", "am", "minjun"]
print(" ".join(list1))
#연습
my_list = ["나는","파이썬을","공부합니다."]
print("!".join(my_list))
print("&".join(my_list))
my_str = "나는*젤리를*먹습니다."
print(my_str.split("*"))
To embed this project on your website, copy the following code and paste it into your website's HTML: