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

문제 : int형 정수 1개를 입력받아 공백을 사이에 두고 3번 출력해보자. 답 : 방법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

문제 : 2개의 문자(ASCII CODE)를 입력받아서 순서를 바꿔 출력해보자. 답 : 코드 : 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

문제 : 답 : 설명 : 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

문제 : 문자형(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