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

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

  • 분류 전체보기 (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기초 unity 파이썬 배열 c# Web SQL javabasic 유니티 javascript java 백준 2D 왕초보 database html 자바기초 Python CSS 자바

최근글

댓글

공지사항

아카이브

Python(45)

  • day 6-4 python (while 반복문 장애물)

    장애물이 바뀌면서 front_is_clear(), wall_in_front(), at_goal() 함수를 사용하고 반복문을 이용하여 완성시켜라 p.s. 시간이 많이 걸렸다 def turn_right(): turn_left() turn_left() turn_left() def met_wall(): turn_left() move() turn_right() move() turn_right() move() turn_left() while at_goal() !=True: if wall_in_front() == True: met_wall() elif front_is_clear() == True: move() else: break turn_right() 함수 생성 met_wall() 함수 생성 while at_goa..

    2023.03.01
  • day 6-3 python while 반복문

    while 반복문 을 이용하기 def turn_right(): turn_left() turn_left() turn_left() def jump(): move() turn_left() move() turn_right() move() turn_right() move() turn_left() huddle = 6 while huddle > 0: jump() huddle -= 1 huddle 이 0이 될때까지 반복문을 실행 두번째 도착 지점이 랜덤일때 while at_goal() != True: jump() if at_goal() == True: break 다른 방법 while not at_goal(): jump() at_goal() 이라는 것이 일치 할때까지 jimp() 함수를 반복한다.

    2023.03.01
  • 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 6-1 python 함수 (Functions)

    print() ## ()가 들어가는 것은 함수이다. num_char = len("Hello") ## len() 함수 ## def my_function(): ## 내가 설정한 함수 def blabla() print("Hello") print("Bye") my_function()

    2023.02.28
  • day 5-6 python (Fizz Buzz)

    규칙 369 랑 비슷한 게임인것 같다. 3으로 나누어 떨어지는 경우에는 Fizz 5로 나누어 떨어질 경우에는 Buzz 둘다 해당하면 Fizz Buzz 숫자의 범위는 1부터 100까지 Instructions You are going to write a program that automatically prints the solution to the FizzBuzz game. Your program should print each number from 1 to 100 in turn. When the number is divisible by 3 then instead of printing the number it should print "Fizz". When the number is divisible by 5,..

    2023.02.27
  • day 5-5 python (짝수 더하기)

    Instructions You are going to write a program that calculates the sum of all the even numbers from 1 to 100. Thus, the first even number would be 2 and the last one is 100: i.e. 2 + 4 + 6 + 8 +10 ... + 98 + 100 Important, there should only be 1 print statement in your console output. It should just print the final total and not every step of the calculation. 2 부터 100까지 짝수만 더하기 나의 코드 ## 짝수 더하기 to..

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

티스토리툴바