일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 진수
- 문자열
- 기초 100제
- codeup
- 2진수
- 10진수
- 비교연산
- 딥러닝
- 아스키코드
- 입출력
- 반복실행구조
- 기초100제
- face recognition
- 선택실행구조
- 2차원배열
- Docker
- OpenCV
- 코드업
- 종합
- 불 자료형
- input()
- bitwise
- 8진수
- 출력
- 불 연산
- 논리연산
- 16진수
- 비트단위논리연산
- 산술연산
- 파이썬
- Today
- Total
목록
728x90
반응형
SMALL
기초100제 (84)
DeepFlowest

문제 : 답 : 설명 : input 한 번에 값을 여러 개 입력 받으려면 split()을 사용해 공백을 기준으로 나눠주면 된다. 변수1, 변수2 = input().split() 변수1, 변수2 = input().split('기준문자열') 변수1, 변수2 = input('문자열').split() 변수1, 변수2 = input('문자열').split('기준문자열') 코드 : https://github.com/Yearang-Lee/Algorithm/tree/master/CodeUp Yearang-Lee/Algorithm Contribute to Yearang-Lee/Algorithm development by creating an account on GitHub. github.com

문제 : 실수형(float)로 변수를 선언하고 그 변수에 실수값을 저장한 후 저장되어 있는 실수값을 출력해보자. 답 : 방법1 방법2 설명 : 1. 출력할 때 print(a)를 하게 되면 잘못된 풀이라고 뜬다. => 출력 예시가 소수점 6자리까지 이므로 맞춰줘야 한다. 2. %f는 무조건 소수점 6자리까지 맞추는 서식문자이기 때문에 print("%f" % a)를 쓴다. %f : 실수형 %d : 정수형 %s : 문자열 %c : 문자 1개 코드 : https://github.com/Yearang-Lee/Algorithm/tree/master/CodeUp Yearang-Lee/Algorithm Contribute to Yearang-Lee/Algorithm development by creating an ac..

문제 : 문자형(char)으로 변수를 하나 선언하고, 변수에 문자를 저장한 후 변수에 저장되어 있는 문자를 그대로 출력해보자. 답 : 방법1 방법2 코드 : https://github.com/Yearang-Lee/Algorithm/tree/master/CodeUp Yearang-Lee/Algorithm Contribute to Yearang-Lee/Algorithm development by creating an account on GitHub. github.com

문제 : 정수형(int)으로 변수를 선언하고, 변수에 정수값을 저장한 후 변수에 저장되어 있는 값을 그대로 출력해보자. 답 : 방법1 방법2 코드 : https://github.com/Yearang-Lee/Algorithm/tree/master/CodeUp Yearang-Lee/Algorithm Contribute to Yearang-Lee/Algorithm development by creating an account on GitHub. github.com