본문 바로가기 메뉴 바로가기

Andamiro25

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Andamiro25

검색하기 폼
  • 분류 전체보기 (175)
    • 블라블라 (0)
      • 한달 (0)
    • 객체 지향 프로그래밍 (12)
      • 이론 정리 (10)
      • 예제 (2)
    • 리눅스 (3)
      • 서버 (3)
    • 파이썬 (56)
      • 이론 (45)
      • 파이썬 GUI (6)
      • 예제 (5)
    • JAVA (8)
      • 예제 (4)
      • GUI (1)
    • 자료구조 및 알고리즘 (29)
      • 개념 (1)
      • 백준 (28)
      • 기타 (0)
    • 웹 (59)
      • HTML, CSS (8)
      • 웹 서버 (2)
      • JavaScript (4)
      • SpringBoot,게시판 만들기 (5)
      • 부스트코스 (39)
      • Node.js (1)
    • 프로젝트 후기 (4)
    • 버전 관리 (3)
      • git (3)
  • 방명록

파이썬/예제 (5)
[파이썬]Chapter 6 예제 part 1 (Q.1 ~ Q.25)

6.1 (Math: pentagonal numbers) A pentagonal number is defined as for and so on. So, the first few numbers are 1, 5, 12, 22, .... Write a function with the following header that returns a pentagonal number: def getPentagonalNumber(n): Write a test program that uses this function to display the first 100 pentagonal numbers with 10 numbers on each line. 1 2 3 4 5 6 7 8 9 10 11 12 def getPentagonalN..

파이썬/예제 2017. 8. 30. 18:14
[파이썬]Chapter 5 예제

*5.1 (Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). Your program ends with the input 0. Display the average as a floating-point number. 1 2 3 4 5 6 7 8 9 10 11 12 13 14..

파이썬/예제 2017. 8. 16. 16:49
[파이썬]Chater 4 예제

*4.1 (Algebra: solve quadratic equations) The two roots of a quadratic equation, for example, can be obtained using the following formula: is called the discriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zero, the equation has one root. If it is negative, the equation has no real roots. Write a program that prompts the user to enter values for a,..

파이썬/예제 2017. 7. 26. 15:49
[파이썬] Chapter 3 예제

3.1 (Geometry: area of a pentagon) Write a program that prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of the pentagon, as shown in the following figure. The formula for computing the area of a pentagon is , where s is the length of a side. The side can be computed using the formula where r is the length from the center of a pentagon to a ver..

파이썬/예제 2017. 7. 19. 17:21
파이썬 Chapter 2 예제

2.1 (Convert Celsius to Fahrenheit) Write a program that reads a Celsius degree from the console and converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: fahrenheit = (9 / 5) * celsius + 32 1 2 3 4 5 6 celsius = eval(input("Enter a degree in Celsius: ")) fahrenheit = (9/5) * celsius + 32 print(celsius, " celsius is ", fahrenheit,"Fahrenheit.") Colored ..

파이썬/예제 2017. 7. 14. 14:37
이전 1 다음
이전 다음
공지사항
  • 깃허브(GitHub) 주소입니다.
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 파이썬 연산자
  • 자료구조
  • 파이썬 선택문
  • 파이썬 단계적 개선
  • 파이썬 터틀
  • 웹
  • 자바스크립트 그래프
  • 파이썬 객체
  • 자바스크립트 자료구조
  • 백준
  • 자바 에센셜 실습문제
  • 백준 11501
  • 파이썬 if문
  • css 그리드
  • 백준 10451
  • 파이썬 for
  • 파이썬 진수 변환
  • css
  • 백준 1874
  • css 박스
  • 버츄어박스
  • 파이썬 예제
  • 파이썬 while
  • 파이썬 클래스
  • 파이썬 문자열
  • 자바
  • 파이썬 함수
  • 명품 c++ 실습
  • 파이썬
  • 파이썬 리스트
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바