반응형

전체 글 80

프론트엔드 취업 공부 계획

-HTML, CSS, JavaScript -프레임워크 : React 1.클론 코딩 -유투브에 있는 클론 코딩들 해보기 -엘리의 드림코딩, 노마드 코더등 2.책 - 자바스크립 : 모던 자바스크립 스터디 중 - html,css : 완성된 웹사이트로 배우는 html,css 웹디자인 책으로 공부 - do it! 시리즈로 공부(웹디자인, 웹표준 정식) - 클론 코딩 하루 2시간 : 책 하루 3시간으로 한다 - 리액트 강의 하루에 1시간 듣기 (기존에 듣는 건 멈춘다- 백엔드 쪽이 더많음..) - 클론 코딩은 다하면 깃허브에 올리기 - 책은 챕터별로 공부해서 블로그에 올리기 - 공부하면서 무슨 프로젝트 만들건지 생각

기타 2023.05.23

[부트캠프] 간단한 계산 프로그램 만들기 - 10일

✍코드 def add(n1, n2): return n1 + n2 def subtract(n1,n2): return n1- n2 def multiply(n1,n2): return n1 * n2 def divide(n1,n2): return n1/n2 #딕셔너리 안에 함수를 넣음 operation = { "+" : add, "-" : subtract, "*" : multiply, "/" : divide } # function = operation["*"] # function(2,3) def calculater(): num1 = float(input("첫번째 숫자를 입력하세요:")) flag = False while not flag: num2 = float(input("다음 숫자를 입력하세요:")) for s..

언어/파이썬 2023.05.22

[모던 자바스크립 Deep Dive - 이웅모] 4장

책에 있는 개념 : 4장 변수 변수하나의 값을 저장하기 위해 확보한 메모리 공간 자체 또는 그 메모리 공간을 식별하기 위해 붙인 이름을 말한다. 식별자 어떤 값을 구별해서 식별할 수 있는 고유한 이름 식발자는 값이 아니라 메모리 주소를 기억하고 있다. 변수 선언 변수 생성 var, let const 자바스크립트 엔진 변수 선언 선언단계 - 초기화 단계 - 런타임 //이건 에러난다 console.log(score); score = 80; let score; //부르기전에 선언 꼭 해야함 console.log(score) //이건 에러가 안남 console.log(score); score = 80; var score; //런타임전에 글로벌 선언됨 console.log(score) 변수 선언의 실행 시점과 변..

언어/WEB 2023.05.19

[부트캠프]Dictionary 딕셔너리 -9일차

✍기본 문법 1.기본 딕셔너리 구조 키-값 dict = {"Bug": "bugvalue.", "Function": "function value."} 2.딕션너리 추가 , 생성, 초기화, 새로운 값추가 #딕션너리 추가 dict["abc"] = "abcccccc" #딕션너리 생성 dict_two ={} #딕션너리 초기화 dict ={} #딕션너리 새로운 값 추가 dict["Bug"] = "computer buy" 3. for 문을 통해서 값들을 받아 올때 #기초 #반복문 for key in dict: print(key) # 키값 print(dict[key]) #키에 해당하는 밸류값 #심화 #기존의 딕셔너리를 활용해서 새 딕셔너리를 만들때 for문을 이용 for student in student_scores:..

언어/파이썬 2023.05.17

[부트캠프] shift를 이용한 암호화 복호화 코드 8일차

👇알파벳을 이용한 암호화 복호화 코드 alphabet = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ] def caesar(start_text, shift_amount, cipher_direction): end_text = "" #decode일때만 -1 if cipher_direction..

언어/파이썬 2023.05.09

[부트캠프] 행맨 게임 - for, if , while

import random from hangman_words import word_list # 원하는 것만 가져오기 chosen_word = random.choice(word_list) # 랜덤으로 글자 선택 word_length = len(chosen_word) end_of_game = False lives = 6 # 틀릴 기회 # print(f'Pssst, the solution is {chosen_word}.') blink = [] for _ in range(word_length): blink += "_" while not end_of_game: guess = input("Guess a letter: ").lower() if guess in blink: #입력한 글자가 이미 있는 거라면 print(f..

카테고리 없음 2023.05.08

[부트캠프] for 과 while 반복문 - 6일차

for문 def turn_right(): turn_left() turn_left() turn_left() def jump(): move() turn_left() move() turn_right() move() turn_right() move() turn_left() #6번 반복하기 for step in range(6): jump() while문 안에 if문 쓰기 def turn_right(): turn_left() turn_left() turn_left() #무한 루프를 방지하기 위해 벽부터 찾는다 while front_is_clear(): move() turn_left() while not at_goal(): #오른쪽벽에 없으면 if right_is_clear(): turn_right() move() ..

언어/파이썬 2023.05.05

[부트캠프] random 함수와 배열 활용

👇코드 #ascii art에서 참고 rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) __________) (____) ---.__(___) ''' #Write your code below this line import random #먼저 위의 코드들을 배열에 넣는다 img = [rock, paper, scissors] MyTrun = int(input("type 0 for rock, 1 for paper, ..

언어/파이썬 2023.05.01
반응형