Skip to content

Commit d0a745c

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

File tree

1 file changed

+258
-0
lines changed

1 file changed

+258
-0
lines changed

시퀀스데이터타입2.ipynb

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
{
2+
"nbformat": 4,
3+
"nbformat_minor": 0,
4+
"metadata": {
5+
"colab": {
6+
"provenance": [],
7+
"authorship_tag": "ABX9TyPwhCemII7AnoytwSGRxiCL",
8+
"include_colab_link": true
9+
},
10+
"kernelspec": {
11+
"name": "python3",
12+
"display_name": "Python 3"
13+
},
14+
"language_info": {
15+
"name": "python"
16+
}
17+
},
18+
"cells": [
19+
{
20+
"cell_type": "markdown",
21+
"metadata": {
22+
"id": "view-in-github",
23+
"colab_type": "text"
24+
},
25+
"source": [
26+
"<a href=\"https://colab.research.google.com/github/JUHYUNCHOI/Python-Data-Analysis-and-Image-Processing-Tutorial/blob/master/%EC%8B%9C%ED%80%80%EC%8A%A4%EB%8D%B0%EC%9D%B4%ED%84%B0%ED%83%80%EC%9E%852.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
27+
]
28+
},
29+
{
30+
"cell_type": "markdown",
31+
"source": [
32+
"1. 다음 문자열에서 6을 출력하세요. "
33+
],
34+
"metadata": {
35+
"id": "apN1d060nf37"
36+
}
37+
},
38+
{
39+
"cell_type": "code",
40+
"execution_count": null,
41+
"metadata": {
42+
"id": "vVbs5Aq3eGg0"
43+
},
44+
"outputs": [],
45+
"source": [
46+
"a = '1234567'"
47+
]
48+
},
49+
{
50+
"cell_type": "markdown",
51+
"source": [
52+
"2. 다음 리스트에서 사과를 출력하세요."
53+
],
54+
"metadata": {
55+
"id": "fxedNsj3nsT7"
56+
}
57+
},
58+
{
59+
"cell_type": "code",
60+
"source": [
61+
"a = ['바나나','포도', '사과', '파인애플', '딸기']\n"
62+
],
63+
"metadata": {
64+
"id": "Ci7IueIbgXJr"
65+
},
66+
"execution_count": null,
67+
"outputs": []
68+
},
69+
{
70+
"cell_type": "markdown",
71+
"source": [
72+
"3. 다음 코드의 결과는 무엇인가요? \n",
73+
"\n",
74+
"```\n",
75+
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n",
76+
"\n",
77+
"print(a[5]) \n",
78+
"```\n"
79+
],
80+
"metadata": {
81+
"id": "Pl9-E9xyn45d"
82+
}
83+
},
84+
{
85+
"cell_type": "code",
86+
"source": [],
87+
"metadata": {
88+
"id": "3MHBirZ6oREr"
89+
},
90+
"execution_count": null,
91+
"outputs": []
92+
},
93+
{
94+
"cell_type": "markdown",
95+
"source": [
96+
"4. 다음 코드의 결과는 무엇인가요? \n",
97+
"\n",
98+
"```\n",
99+
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n",
100+
"\n",
101+
"for i in range(2,5):\n",
102+
" print(a[i], end = '')\n",
103+
"```"
104+
],
105+
"metadata": {
106+
"id": "XkrVNaEToR9O"
107+
}
108+
},
109+
{
110+
"cell_type": "code",
111+
"source": [],
112+
"metadata": {
113+
"id": "QDqYgEE3orsz"
114+
},
115+
"execution_count": null,
116+
"outputs": []
117+
},
118+
{
119+
"cell_type": "markdown",
120+
"source": [
121+
"5. 다음 9부터 1까지 거꾸로 출력하는 프로그램을 완성하세요.\n",
122+
"\n",
123+
" 결과: \n",
124+
" 987654321 "
125+
],
126+
"metadata": {
127+
"id": "BWWeGRjjosWC"
128+
}
129+
},
130+
{
131+
"cell_type": "code",
132+
"source": [
133+
"a = '123456789'\n"
134+
],
135+
"metadata": {
136+
"id": "3HmaNyoBo7Hj"
137+
},
138+
"execution_count": null,
139+
"outputs": []
140+
},
141+
{
142+
"cell_type": "markdown",
143+
"source": [
144+
"6. 다음 리스트를 거꾸로 출력하는 프로그램을 완성하세요. \n",
145+
" \n",
146+
" 결과: \n",
147+
" 딸기 파인애플 사과 포도 바나나"
148+
],
149+
"metadata": {
150+
"id": "V7VScGpwpEl_"
151+
}
152+
},
153+
{
154+
"cell_type": "code",
155+
"source": [
156+
"a = ['바나나','포도', '사과', '파인애플', '딸기']"
157+
],
158+
"metadata": {
159+
"id": "6uVX9iC4pKB1"
160+
},
161+
"execution_count": null,
162+
"outputs": []
163+
},
164+
{
165+
"cell_type": "markdown",
166+
"source": [
167+
"7. 다음 리스트에서 포도, 사과, 파인애플만 출력하는 프로그램을 완성하세요. \n",
168+
"\n",
169+
" 결과: \n",
170+
" 포도 사과 파인애플 "
171+
],
172+
"metadata": {
173+
"id": "LiVa4e7Kpioy"
174+
}
175+
},
176+
{
177+
"cell_type": "code",
178+
"source": [
179+
"a = ['바나나','포도', '사과', '파인애플', '딸기']\n"
180+
],
181+
"metadata": {
182+
"id": "DfIA3JqTqBtA"
183+
},
184+
"execution_count": null,
185+
"outputs": []
186+
},
187+
{
188+
"cell_type": "markdown",
189+
"source": [
190+
"8. 다음 리스트에서 파인애플, 사과만 출력하는 프로그램을 완성하세요.\n",
191+
"\n",
192+
" 결과: \n",
193+
" 파인애플, 사과"
194+
],
195+
"metadata": {
196+
"id": "uw-Oxk3sqFM6"
197+
}
198+
},
199+
{
200+
"cell_type": "code",
201+
"source": [
202+
"a = ['바나나','포도', '사과', '파인애플', '딸기']"
203+
],
204+
"metadata": {
205+
"id": "4DaV-702qK9Q"
206+
},
207+
"execution_count": null,
208+
"outputs": []
209+
},
210+
{
211+
"cell_type": "markdown",
212+
"source": [
213+
"9. 다음 문자열에서 오늘은만 출력하세요. \n",
214+
"\n",
215+
" 결과: \n",
216+
" 오늘만 "
217+
],
218+
"metadata": {
219+
"id": "eiDpHPCRqSuV"
220+
}
221+
},
222+
{
223+
"cell_type": "code",
224+
"source": [
225+
"a = '안녕하세요. 오늘은 날씨가 좋군요.'\n"
226+
],
227+
"metadata": {
228+
"id": "Tywra9GDqrQh"
229+
},
230+
"execution_count": null,
231+
"outputs": []
232+
},
233+
{
234+
"cell_type": "markdown",
235+
"source": [
236+
"10. 다음 리스트에서 짝수 위치에 있는 아이템만 출력하세요. \n",
237+
"\n",
238+
" 결과: \n",
239+
" 포도 파인애플 산딸기 "
240+
],
241+
"metadata": {
242+
"id": "PdVC1iqQq7s4"
243+
}
244+
},
245+
{
246+
"cell_type": "code",
247+
"source": [
248+
"a = ['바나나','포도', '사과', '파인애플', '딸기', '산딸기']\n",
249+
"\n"
250+
],
251+
"metadata": {
252+
"id": "-P755fh9lo-u"
253+
},
254+
"execution_count": null,
255+
"outputs": []
256+
}
257+
]
258+
}

0 commit comments

Comments
 (0)