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

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

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

최근글

댓글

공지사항

아카이브

파이썬(40)

  • day 2-5 python (BMI example)

    Instructions Write a program that calculates the Body Mass Index (BMI) from a user's weight and height. The BMI is a measure of someone's weight taking into account their height. e.g. If a tall person and a short person both weigh the same amount, the short person is usually more overweight. The BMI is calculated by dividing a person's weight (in kg) by the square of their height (in m): Warning..

    2023.02.21
  • day 2-4 python (수학 연산)

    3 + 5 # 더하기 7 - 4 # 빼기 3 * 2 # 곱하기 6 / 3 #나누기 2 ** 2 #제곱 print 6/3 = ??? print (type(6/3)) # 6/3 의 타입은?? print(2**3) #2의 3제곱은? 연산 순서 #PEMDAS #연산 순서 # () Parentheses 괄호 # ** Exponents 지수 # * Multiplication 곱셉 곱셉과 나눗셈중 가장 왼쪽에서 부터 연산을 처리함 # / Division 나눗셈 # + Addition 덧셈 # - Subtraction 예제 # print(3 * 3 + 3 / 3 - 3) = 결과값 7 # 위의 식을 이용해 결과값이 3이 되게 하시오. print(3 * (3 + 3) / 3 - 3)

    2023.02.21
  • day 2-3 python (data tpyes exercise)

    Instructions Write a program that adds the digits in a 2 digit number. e.g. if the input was 35, then the output should be 3 + 5 = 8 Warning. Do not change the code on lines 1-3. Your program should work for different inputs. e.g. any two-digit number. Example Input 39 Example Output 3 + 9 = 12 12 e.g. When you hit run, this is what should happen: 두자리 숫자를 넣으면 10의자리 숫자와 1의 자리 숫자를 + 연산하여 결과 값을 내어라..

    2023.02.20
  • day 2-2 python (형식 오류와 형식 확인, 그리고 형 변환)

    num_char = len(input("What is your name?")) print("Your name has " + num_char + "characters.") 문자열에 정수를 연결했으므로 Error 가 발생한다. num_char = len(input("What is your name?")) # print("Your name has " + num_char + "characters.") print(type(num_char)) 정수형에 문자열 형식을 추가하는 것은 불가능함 그래서 형식 오류가 발생 type() 은 코드를 짤때 데이터 타입을 알 수 없을때 데이터 형식을 확인할 수 있다. 데이터 형 변환, 또는 캐스팅이라 불리는 데이터 간의 형식 변환. num_char = len(input("What ..

    2023.02.20
  • day 2-1 python (데이터 타입)

    #Data Types #String print("Hello"[0]) # Hello 의 [0]의 자리를 출력하라 print("Hello"[4]) # Hello 의 [4]의 자리를 출력하라 print("123" + "345") # 문자열 123 과 345를 합쳐라 #Integer(정수) # 숫자를 합치고 싶다면 a = 123 b = 345 # 변수를 선언해서 합치거나 print(a+b) # 큰 따옴표 없이 숫자만 입력하면 숫자의 합이 나온다. print(123+345) 123_456_789 #숫자의 크기가 클때 밑줄은 쉼표의 역할 컴퓨터는 무시함. # Float 3.14159 # Boolean True False

    2023.02.20
  • day 1-5 python (복합)

    조건 #1. Create a greeting for your program. : 프로그램에 환영인사말 넣어라 #2. Ask the user for the city that they grew up in. : 어디서 자랐는지 물어라 #3. Ask the user for the name of a pet. : 애완동물 이름을 물어라 #4. Combine the name of their city and pet and show them their band name. : 도시와 동물이름을 합쳐서 밴드 이름으로 보여라 #5. Make sure the input cursor shows on a new line : 입력은 다음줄에 #1. Create a greeting for your program. print("Welc..

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

티스토리툴바