코딩을 한단계씩 부셔보자.

코딩을 한단계씩 부셔보자.

  • 분류 전체보기 (319)
    • 코딩배움일지 (157)
      • JAVA (79)
      • DataBase (29)
      • Web 구현 (34)
      • 인터페이스 구현 (15)
    • 개인적인 공부 (142)
      • 자바 (6)
      • 백준 (47)
      • Java의 정석 (0)
      • 그냥정리 (2)
      • Database 복습 (5)
      • 테스트 페이지 (1)
      • 프론트엔드 (7)
      • Unity (29)
      • Python (45)
    • TeamProjectHappy (12)
      • front (9)
      • database (3)
    • 개발일지 (2)
      • Journey to West (2)
  • 홈
  • 배움기록
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

코딩을 한단계씩 부셔보자.

컨텐츠 검색

태그

왕초보 java 배열 2D c# unity 백준 Python Web 자바 java기초 html javabasic 자바기초 파이썬 CSS javascript database 유니티 SQL

최근글

댓글

공지사항

아카이브

Python(45)

  • day 8-2 python (위치와 키워드)

    위치 함수 ## 2개의 파라미터를 생성하고 출력 def greet_with(name,location): print(f"Hello {name}") print(f"What is it like in {location}") greet_with("kartejin", "Korea") ## Positional Argument ## 2개의 파라미터를 생성하고 출력 def greet_with(name,location): print(f"Hello {name}") print(f"What is it like in {location}") greet_with("Korea", "karatejin") 키워드 함수 ## Keywrod Arg def greet_with(name,location): print(f"Hello {name}"..

    2023.03.10
  • day 8-1 python (입력 값이 있는 함수)

    def greet(): print("Hello!! wecome to python") name = input("input your name : ") print("Hello " + name) greet() def greet_with_name(name): ## Parameter print("Hello " + name) ## print(f"Hello {name}") print("How are you " + name) ## print(f"How are you {name}") greet_with_name("karatejin") ## Argument parameter 함수에 전달된 데이터의 이름 argument 데이터의 실제값

    2023.03.10
  • day 7-3 hangman

    ##-- 끝날때 까지 반복하기 end_of_game = False while not end_of_game: guess = input("Enter your guess: ").lower() for position in range(word_length): letter = chosen_word[position] if letter == guess: display[position] = letter print(display) if "_" not in display: end_of_game = True print("You win!")

    2023.03.10
  • day 7-2 hangman

    ## 행맨 ## 빈칸을 맞춘 글자로 바꾸기 import random word_list =["ardvark","baboon","camel","dragon"] ## test code chosen_word = random.choice(word_list) print(f"select word is : {chosen_word}") display = [] word_length = len(chosen_word) for _ in range(word_length): display += "_" print(display) guess = input("Enter your guess: ").lower() for position in range(word_length): letter = chosen_word[position] if l..

    2023.03.10
  • day 7-1 hangman

    ## 행맨 ## 무작위로 단어 고르고 정답확인 import random word_list =["ardvark","baboon","camel","dragon"] ## test code chosen_word = random.choice(word_list) print(chosen_word) guess = input("Enter your guess: ").lower() for letter in chosen_word: if letter == guess: print("Right") else: print("Wrong") 결과

    2023.03.10
  • day 6-5 python (무작위 장애물)

    나의 코드 def turn_right(): turn_left() turn_left() turn_left() while not at_goal(): if wall_in_front() and wall_on_right(): turn_left() elif wall_on_right() == True: move() elif right_is_clear() or wall_in_front() == True: turn_right() move() turn_right() move() else: move() 코드의 줄수는 적어도 실행 속도가 느림 다른 코드 def turn_right(): turn_left() turn_left() turn_left() def met_wall(): turn_left() while wall_on_r..

    2023.03.02
이전
1 2 3 4 ··· 8
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바