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

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

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

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

컨텐츠 검색

태그

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

최근글

댓글

공지사항

아카이브

Python(45)

  • 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
  • day 4-4 python (roulette, 룰렛)

    Instructions You are going to write a program that will select a random name from a list of names. The person selected will have to pay for everybody's food bill. Important: You are not allowed to use the choice() function. Line 8 splits the string names_string into individual names and puts them inside a List called names. For this to work, you must enter all the names as names followed by comm..

    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
  • day 4-1 python (Randomisation), 무작위화

    파이썬은 자체에 내장되어 있는 Random 기능을 import 해서 사용한다. import random random_integer = random.randint(1, 10) #randint는 정수 지정한 범위내 두개의 값을 정해줘라 print(random_integer) random_float = random.random() * 5 # random.random() 괄호안에 no args 은 1 이내의 소수점 1은 출력 안함 print(random_float) random.randint(a,b) randint는 a 와 b 사이의 지정된 값을 범위 내에서 랜덤 선택한다 random.random()은 0에서 1이내의 값을 출력 float 값이다.

    2023.02.23
  • day 3-9 python 사랑계산기, (Love Calculator)

    💪 This is a Difficult Challenge 💪 Instructions You are going to write a program that tests the compatibility between two people. To work out the love score between two people: : 무슨 어릴때 이름 두개 합쳐서 획 수로 뭐 하는 거 같은데 영미권 애들은 TRUE LOVE 스펠링 나오는걸로 점수 합치는가 보다 사람사는 세상 비슷한거 같다. Take both people's names and check for the number of times the letters in the word TRUE occurs. Then check for the number of times ..

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

티스토리툴바