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

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

  • 분류 전체보기 (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 피드
로그인
로그아웃 글쓰기 관리

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

컨텐츠 검색

태그

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

최근글

댓글

공지사항

아카이브

반복문(7)

  • 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-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-2 python (반복문)

    def move_it(): move() turn_left() move_it() move() def turn_right(): turn_left() turn_left() turn_left() turn_right() def move_around(): move() turn_right() move_around() for locate in range(5): move_it() move_it() move_around() move_around() move() 만들어진 기능인 move() 와 turn_left() 를 def 함수를 써서 기능을 만든 다음 for 반복문을 5번 반복하고 마지막 move()를 사용하여 위치시키게 함. 더 짧게 하기 def turn_right(): turn_left() turn_left() tu..

    2023.03.01
  • day 5-2 python (평균 키 구하기)

    Instructions You are going to write a program that calculates the average student height from a List of heights. e.g. student_heights = [180, 124, 165, 173, 189, 169, 146] The average height can be calculated by adding all the heights together and dividing by the total number of heights. e.g. 180 + 124 + 165 + 173 + 189 + 169 + 146 = 1146 There are a total of 7 heights in student_heights 1146 ÷ ..

    2023.02.27
  • Java 5일차 6

    import java.util.Scanner; public class Loop5_copy { public static void main(String[] args) { int a = 10; int b = 2; Scanner sc = new Scanner(System.in); boolean loopFlag = true; while (loopFlag) { String select = null; /*변수 선언*/ System.out.println("1. 덧셈"); System.out.println("2. 뺄셈"); System.out.println("3. 곱셈"); System.out.println("4. 나눗셈"); System.out.println("5. 나머지"); System.out.println("q...

    2022.11.16
  • Java 5일차 2

    While for문이 정해진 횟수만큼 반복한다면, while 문은 조건식이 true 일 경우에 계속해서 반복합니다. 조건식에는 비교 또는 논리 연산식이 주로오는데, 조건식이 false가 되면 반복 행위를 멈추고 while문을 종료합니다. import java.util.Scanner; public class Loop4 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String select = null; while(true){ System.out.println("[폴더 선택]"); System.out.println("1. 문서"); System.out.println("2. 음악"); System.out.print..

    2022.11.16
이전
1 2
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바