<jupyter_start><jupyter_text>숙제: 유효숫자의 뜻 알아보기<jupyter_code>user_input = 1
user_input_= "1"
user_input == user_input_
user_input_ = int(user_input_)
user_input == user_input_
input()
name = input()
name
name = input("이름을 입력하시오: ")
name
input()
age = int(input("나이를 입력하시오: "))
age
age + 12
free_memo = eval(input("자유롭게 입력하세요: "))
free_memo<jupyter_output><empty_output><jupyter_text>Small Project<jupyter_code>import math

r = int(input("반지름을 입력하세요: "))
pi = math.pi

print("r =", r)
print("d =", 2 * r)
print("c =", 2 * pi * r)
print("a =", pi * (r ** 2))
print("gnb =", 4 * pi * (r ** 2))
print("v =", (4 / 3) * pi * (r ** 3))
"안녕하세요. 패스트캠퍼스입니다."
'안녕하세요'
some_text = "Python is very easy and useful language."
some_text[4]
some_text[:]
some_text[7:8+1]
some_text[24:29+1]
some_text[::2]
#처음부터 끝까지 2칸씩 띄워라
some_text[::-1]
some_text[-10:-2]
some_text = some_text[:10]+"super"+some_text[14:]
some_text
some_text.count("p")+some_text.count("P")
some_text.find("is")
#단어가 시작하는 위치
comma = ","
comma = comma.join("Python is easy.")
comma
"짝".join("369")
comma.split(',')
"Python is easy.".split()
easy = "Python is easy."
easy.split()
easy = easy.replace("Python", "R")
easy
scraped = '         Halloween           '
scraped.strip()
scraped = '         ...,,,,Halloween!!!!???.,.,.           '
scraped.strip(" ,.!?")<jupyter_output><empty_output><jupyter_text>String format<jupyter_code>"I have a %s, I have an %s."%("pen", "pineapple")
sentence = "I have a %s, I have an %s"
sentence% ("pen", "pineapple")
sentence = "I have a {}, I have an {}"
sentence.format("pen", "apple")
sentence = "I have a {1}, I have an {0}"
sentence.format("pen", "apple")
sentence = "I have a {:*^9}, I have an {}"
print(sentence.format("pen", "apple"))
print(sentence.format("pineapple", "pen"))
ppap = """
I have a {0}, I have an {1:>9}. {1:>9}{0}.
I have a {0}, I have an {2}. {2}{0}
""".format("pen", "apple", "pineapple")
print(ppap)<jupyter_output>I have a pen, I have an     apple.     applepen.
I have a pen, I have an pineapple. pineapplepen<jupyter_text>List, Tuple<jupyter_code>fastcampus = []
fastcampus
fastcampus.append('Python')
fastcampus
fastcampus.append(3)
fastcampus
fastcampus.append([1,2,3,"Golang"])
fastcampus
fastcampus[1]
fastcampus[1]=3.14
fastcampus
fastcampus[2][1]
fastcampus.insert(1, 6.28)
fastcampus
fastcampus.remove(3.14)
fastcampus
fastcampus.remove(fastcampus[1])
fastcampus
fastcampus.pop()
fastcampus
temp = fastcampus.pop()
temp
fastcampus
numbers = [2,0,3.14,-12319, 36228, 2.7193, 3.145453]
numbers
numbers.sort()
numbers
numbers
numbers.reverse()
numbers
numbers.sort(reverse=True)
numbers
[
    [],[]
]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19486404833836857, 'fraction_numerical': 0.03512084592145015, 'mean_word_length': 5.277251184834123, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 18, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '400913', 'license': 'MIT', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1213, 'n_words': 252, 'path': 'python/notes/Day02.datatype,string,list,tuple.ipynb', 'repo_name': 'mindudekim/TIL', 'size': '2648'}