본문 바로가기

분류 전체보기100

[Python] Day 16 making bibimbap with python def make_bibimbap(rice): return f"{rice}+rice" def put_gogi(gogi): return f"{gogi}+gogi" def put_gochujang(gochujang): return f"{gochujang}+gochujang" bibimbap=make_bibimbap("hyunmi") gogi_bibimbap=put_gogi(bibimbap) final_bibimbap=put_gochujang(gogi_bibimbap) print(final_bibimbap) def make_juice(fruit): return f"{fruit}" def put_ice(juice): return f"{juice}+4" def pu.. 2023. 2. 23.
[CS50, Javascript] Day 15 const title = document.querySelector("div.hello:first-child h1"); function animation(){ title.style.color= "blue"; } function animation2(){ title.innerText="whoala"; } function handleWindowResize(){ document.body.style.backgroundColor="black"; } title.addEventListener("click", animation); title.addEventListener("mouseenter", animation2); window.addEventListener("resize", handleWindowResize); C #.. 2023. 2. 22.
[Javascript] Day 14 오늘은 새로운 강의를 시작했다. 가보자고~ 1. javascript javascrip에서는 variable을 쓸 수 있는데 그 중, 1. Const : always use const== 바뀔 수 없는 variable, 2. Let: sometimes use let== 바뀔 수 있는 variable 3. Var: never use var 등이 있음 // const = constant 상수 const a = 5; const b = 2; const myName = "summer"; const lonLongLongLongNumber = 3; // console.log => send message to the console in the website // log or print something inside th.. 2023. 2. 20.
[CS 50] 네이버 부스트코스 시작! CS 50 1. string answer = get_string("what's your nameˀ?ˀˀ?ˀ); = assign the variable from right to left 2. string answer = get_string("what's your nameˀ?ˀˀ?ˀ); print("hello, %s \n", answer); 3. boolean expression: true or false question char = single character ex, y or n 4. forever= while 5. int i=0; make float ./float #include #include int main(void) { float price = get_float ("what's your price.. 2023. 2. 20.