Skip to content

Commit e78ca8d

Browse files
committed
Colaboratory를 통해 생성됨
1 parent d0a745c commit e78ca8d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

시퀀스데이터타입2.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"authorship_tag": "ABX9TyPwhCemII7AnoytwSGRxiCL",
7+
"authorship_tag": "ABX9TyOxJmEKanXyqcRP/qd/0CqF",
88
"include_colab_link": true
99
},
1010
"kernelspec": {
@@ -29,7 +29,7 @@
2929
{
3030
"cell_type": "markdown",
3131
"source": [
32-
"1. 다음 문자열에서 6을 출력하세요. "
32+
"1. 다음 문자열에서 '다'을 출력하세요. "
3333
],
3434
"metadata": {
3535
"id": "apN1d060nf37"
@@ -43,13 +43,13 @@
4343
},
4444
"outputs": [],
4545
"source": [
46-
"a = '1234567'"
46+
"a = '가나다라마바사'"
4747
]
4848
},
4949
{
5050
"cell_type": "markdown",
5151
"source": [
52-
"2. 다음 리스트에서 사과를 출력하세요."
52+
"2. 다음 리스트에서 6을 출력하세요."
5353
],
5454
"metadata": {
5555
"id": "fxedNsj3nsT7"
@@ -58,7 +58,7 @@
5858
{
5959
"cell_type": "code",
6060
"source": [
61-
"a = ['바나나','포도', '사과', '파인애플', '딸기']\n"
61+
"a = [1, 3, 4, 5, 6, 7, 8]\n"
6262
],
6363
"metadata": {
6464
"id": "Ci7IueIbgXJr"
@@ -72,7 +72,7 @@
7272
"3. 다음 코드의 결과는 무엇인가요? \n",
7373
"\n",
7474
"```\n",
75-
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n",
75+
"a = '저의 이름은 기린입니다.'\n",
7676
"\n",
7777
"print(a[5]) \n",
7878
"```\n"
@@ -96,7 +96,7 @@
9696
"4. 다음 코드의 결과는 무엇인가요? \n",
9797
"\n",
9898
"```\n",
99-
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n",
99+
"a = '저의 이름은 기린입니다.'\n",
100100
"\n",
101101
"for i in range(2,5):\n",
102102
" print(a[i], end = '')\n",
@@ -118,10 +118,10 @@
118118
{
119119
"cell_type": "markdown",
120120
"source": [
121-
"5. 다음 9부터 1까지 거꾸로 출력하는 프로그램을 완성하세요.\n",
121+
"5. 다음과 같이 입력값을 거꾸로 출력하는 프로그램을 완성하세요.\n",
122122
"\n",
123123
" 결과: \n",
124-
" 987654321 "
124+
" 사바마라다나가 "
125125
],
126126
"metadata": {
127127
"id": "BWWeGRjjosWC"
@@ -130,7 +130,7 @@
130130
{
131131
"cell_type": "code",
132132
"source": [
133-
"a = '123456789'\n"
133+
"a = '가나다라마바사'\n"
134134
],
135135
"metadata": {
136136
"id": "3HmaNyoBo7Hj"
@@ -144,7 +144,7 @@
144144
"6. 다음 리스트를 거꾸로 출력하는 프로그램을 완성하세요. \n",
145145
" \n",
146146
" 결과: \n",
147-
" 딸기 파인애플 사과 포도 바나나"
147+
" 7 6 5 4 3 2 1"
148148
],
149149
"metadata": {
150150
"id": "V7VScGpwpEl_"
@@ -153,7 +153,7 @@
153153
{
154154
"cell_type": "code",
155155
"source": [
156-
"a = ['바나나','포도', '사과', '파인애플', '딸기']"
156+
"a = [1,2,3,4,5,6,7]"
157157
],
158158
"metadata": {
159159
"id": "6uVX9iC4pKB1"
@@ -164,10 +164,10 @@
164164
{
165165
"cell_type": "markdown",
166166
"source": [
167-
"7. 다음 리스트에서 포도, 사과, 파인애플만 출력하는 프로그램을 완성하세요. \n",
167+
"7. 다음 리스트에서 2, 3, 4 출력하는 프로그램을 완성하세요. \n",
168168
"\n",
169169
" 결과: \n",
170-
" 포도 사과 파인애플 "
170+
" 2 3 4 "
171171
],
172172
"metadata": {
173173
"id": "LiVa4e7Kpioy"
@@ -176,7 +176,7 @@
176176
{
177177
"cell_type": "code",
178178
"source": [
179-
"a = ['바나나','포도', '사과', '파인애플', '딸기']\n"
179+
"a = [1, 2, 3, 4, 5, 6, 7]\n"
180180
],
181181
"metadata": {
182182
"id": "DfIA3JqTqBtA"
@@ -187,10 +187,10 @@
187187
{
188188
"cell_type": "markdown",
189189
"source": [
190-
"8. 다음 리스트에서 파인애플, 사과만 출력하는 프로그램을 완성하세요.\n",
190+
"8. 다음 리스트에서 5, 4만 출력하는 프로그램을 완성하세요.\n",
191191
"\n",
192192
" 결과: \n",
193-
" 파인애플, 사과"
193+
" 5, 4"
194194
],
195195
"metadata": {
196196
"id": "uw-Oxk3sqFM6"
@@ -199,7 +199,7 @@
199199
{
200200
"cell_type": "code",
201201
"source": [
202-
"a = ['바나나','포도', '사과', '파인애플', '딸기']"
202+
"a = [1, 2, 3, 4, 5, 6, 7]\n"
203203
],
204204
"metadata": {
205205
"id": "4DaV-702qK9Q"
@@ -210,10 +210,10 @@
210210
{
211211
"cell_type": "markdown",
212212
"source": [
213-
"9. 다음 문자열에서 오늘은만 출력하세요. \n",
213+
"9. 다음 문자열에서 '다라마'만 출력하세요. \n",
214214
"\n",
215215
" 결과: \n",
216-
" 오늘만 "
216+
" 다라마 "
217217
],
218218
"metadata": {
219219
"id": "eiDpHPCRqSuV"
@@ -222,7 +222,7 @@
222222
{
223223
"cell_type": "code",
224224
"source": [
225-
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n"
225+
"a = '가나다라마바사'\n"
226226
],
227227
"metadata": {
228228
"id": "Tywra9GDqrQh"
@@ -233,10 +233,10 @@
233233
{
234234
"cell_type": "markdown",
235235
"source": [
236-
"10. 다음 리스트에서 짝수 위치에 있는 아이템만 출력하세요. \n",
236+
"10. 다음 리스트에서 짝수 위치에 있는 숫자만 출력하세요. \n",
237237
"\n",
238238
" 결과: \n",
239-
" 포도 파인애플 산딸기 "
239+
" 3 5 7 "
240240
],
241241
"metadata": {
242242
"id": "PdVC1iqQq7s4"
@@ -245,7 +245,7 @@
245245
{
246246
"cell_type": "code",
247247
"source": [
248-
"a = ['바나나','포도', '사과', '파인애플', '딸기', '산딸기']\n",
248+
"a = [2, 3, 4, 5, 6, 7, 8]\n",
249249
"\n"
250250
],
251251
"metadata": {

0 commit comments

Comments
 (0)