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

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

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

최근글

댓글

공지사항

아카이브

파이썬(40)

  • day 4-7 python (가위 바위 보)

    가위 바위 보 ## 가위 바위 보 import random rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) __________) (____) ---.__(___) ''' choice = int(input("가위 바위 보 게임을 시작합니다. (숫자를 입력해주세요) : 0.바위 1.가위, 2.보 \n 당신의 선택은??: ")) if choice == 0 : print("당신의 선택은 : " + rock) eli..

    2023.02.24
  • day 4-6 python (지도 만들기?)

    Instructions You are going to write a program that will mark a spot with an X. In the starting code, you will find a variable called map. This map contains a nested list. When map is printed this is what the nested list looks like: [['⬜️', '⬜️', '⬜️'],['⬜️', '⬜️', '⬜️'],['⬜️', '⬜️', '⬜️']] This is a bit hard to work with. So on lines 6 and 23, we've used this line of code print(f"{row1}\n{row2}\..

    2023.02.24
  • day 4-5 python indexError 및 중첩리스트

    ##---- index Error 중첩리스트 province_of_korea = ["경상남도","경상북도","전라남도","전라북도","제주특별자치도","강원도","충청남도","충청북도","경기도"] metropolitan_korea =["부산광역시","대구광역시","광주광역시","울산광역시","통합창원시","대전광역시","세종특별자치시","수원특례시","고양특례시","용인특례시"] print(len(province_of_korea)) print(len(metropolitan_korea)) 배열 9번째, 10번째 출력하라고 하면? print(province_of_korea[9]) print(metropolitan_korea[10]) 경기도 항목 뒤에는 아무것도 없기 때문에 Error 가 발생 중첩 리스트 ..

    2023.02.24
  • 랜덤 복습

    1 # 임의의 개수로 이름을 넣고 무작위 로 하나의 결과를 보여주기 import random #이름 작성 names_stirng = input("이름을 작성해주세요, 쉼표와 띄어쓰기를 합시다. : ") names = names_stirng.split(", ") ## 스플릿 지정 # 랜덤 결과 보여주기 names_item = len(names) #문자열의 개수 print(names_item) 2 # 임의의 개수로 이름을 넣고 무작위 로 하나의 결과를 보여주기 import random #이름 작성 names_stirng = input("이름을 작성해주세요, 쉼표와 띄어쓰기를 합시다. : ") names = names_stirng.split(", ") ## 스플릿 지정 # 랜덤 결과 보여주기 names_ite..

    2023.02.24
  • day 4-3 python (list, 리스트)

    리스트 ##---- list study province_of_korea = ["경상남도","경상북도","전라남도","전라북도","제주특별자치도","강원도","충청남도","충청북도","경기도"] ##--대괄호 안에 작성 metropolitan_korea =["부산광역시","대구광역시","광주광역시","울산광역시","통합창원시","대전광역시","세종특별자치시","수원특례시","고양특례시","용인특례시"] print(province_of_korea[0]) ##-- 대괄호안 숫자를 입력하면 각 변수의 순서에 따라 출력 print(metropolitan_korea[-1]) ## -1을 입력하면 배열의 마지막 순서가 출력 , 인덱스는 양수 음수 모두 가능하다. 배열의 값을 바꿀때 metropolitan_korea ..

    2023.02.24
  • day 4-2 python (Head or Tails), 동전 앞 뒤

    Random 을 이용한 동전 앞뒤 Instructions You are going to write a virtual coin toss program. It will randomly tell the user "Heads" or "Tails". Important, the first letter should be capitalised and spelt exactly like in the example e.g. Heads, not heads. There are many ways of doing this. But to practice what we learnt in the last lesson, you should generate a random number, either 0 or 1. Then use that ..

    2023.02.24
이전
1 2 3 4 5 6 7
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바