Skip to content

Commit 6b5531e

Browse files
committed
sorted list fix
1 parent 65f792b commit 6b5531e

4 files changed

Lines changed: 41 additions & 37 deletions

.ipynb_checkpoints/Objects and Data Structures Assessment Test-Solution-checkpoint.ipynb

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"collapsed": true
1414
},
1515
"source": [
16-
"## Test your knowledege. \n",
16+
"## Test your knowledge. \n",
1717
"\n",
1818
"** Answer the following questions **"
1919
]
@@ -111,7 +111,7 @@
111111
"cell_type": "markdown",
112112
"metadata": {},
113113
"source": [
114-
"**Answer: Because Python 2 performs classic division for integers. Use floats to perform true divsion. For example:\n",
114+
"**Answer: Because Python 2 performs classic division for integers. Use floats to perform true division. For example:\n",
115115
"2.0/3**"
116116
]
117117
},
@@ -270,7 +270,7 @@
270270
"cell_type": "markdown",
271271
"metadata": {},
272272
"source": [
273-
"Given the string 'hello' give an index commadn that returns 'e'. Use the code below:"
273+
"Given the string 'hello' give an index command that returns 'e'. Use the code below:"
274274
]
275275
},
276276
{
@@ -506,29 +506,29 @@
506506
},
507507
{
508508
"cell_type": "code",
509-
"execution_count": 33,
509+
"execution_count": 1,
510510
"metadata": {
511511
"collapsed": true
512512
},
513513
"outputs": [],
514514
"source": [
515-
"l = [3,4,5,5,6]"
515+
"l = [5,3,4,6,1]"
516516
]
517517
},
518518
{
519519
"cell_type": "code",
520-
"execution_count": 38,
520+
"execution_count": 2,
521521
"metadata": {
522522
"collapsed": false
523523
},
524524
"outputs": [
525525
{
526526
"data": {
527527
"text/plain": [
528-
"[3, 4, 5, 5, 6]"
528+
"[1, 3, 4, 5, 6]"
529529
]
530530
},
531-
"execution_count": 38,
531+
"execution_count": 2,
532532
"metadata": {},
533533
"output_type": "execute_result"
534534
}
@@ -540,18 +540,18 @@
540540
},
541541
{
542542
"cell_type": "code",
543-
"execution_count": 40,
543+
"execution_count": 3,
544544
"metadata": {
545545
"collapsed": false
546546
},
547547
"outputs": [
548548
{
549549
"data": {
550550
"text/plain": [
551-
"[3, 4, 5, 5, 6]"
551+
"[1, 3, 4, 5, 6]"
552552
]
553553
},
554-
"execution_count": 40,
554+
"execution_count": 3,
555555
"metadata": {},
556556
"output_type": "execute_result"
557557
}
@@ -688,7 +688,7 @@
688688
"outputs": [],
689689
"source": [
690690
"# This will be hard and annoying!\n",
691-
"d = {'k1':[1,2,{'k2':['this is tricky',{'toughie':[1,2,['hello']]}]}]}"
691+
"d = {'k1':[1,2,{'k2':['this is tricky',{'tough':[1,2,['hello']]}]}]}"
692692
]
693693
},
694694
{
@@ -711,7 +711,7 @@
711711
],
712712
"source": [
713713
"# Phew\n",
714-
"d['k1'][2]['k2'][1]['toughie'][2][0]"
714+
"d['k1'][2]['k2'][1]['tough'][2][0]"
715715
]
716716
},
717717
{
@@ -739,7 +739,7 @@
739739
"cell_type": "markdown",
740740
"metadata": {},
741741
"source": [
742-
"What is the major difference betwen tuples and lists?"
742+
"What is the major difference between tuples and lists?"
743743
]
744744
},
745745
{
@@ -1047,8 +1047,9 @@
10471047
}
10481048
],
10491049
"metadata": {
1050+
"anaconda-cloud": {},
10501051
"kernelspec": {
1051-
"display_name": "Python 3",
1052+
"display_name": "Python [default]",
10521053
"language": "python",
10531054
"name": "python3"
10541055
},
@@ -1062,7 +1063,7 @@
10621063
"name": "python",
10631064
"nbconvert_exporter": "python",
10641065
"pygments_lexer": "ipython3",
1065-
"version": "3.5.1"
1066+
"version": "3.5.3"
10661067
}
10671068
},
10681069
"nbformat": 4,

.ipynb_checkpoints/Objects and Data Structures Assessment Test-checkpoint.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"collapsed": true
1414
},
1515
"source": [
16-
"## Test your knowledege. \n",
16+
"## Test your knowledge. \n",
1717
"\n",
1818
"** Answer the following questions **"
1919
]
@@ -141,7 +141,7 @@
141141
"cell_type": "markdown",
142142
"metadata": {},
143143
"source": [
144-
"Given the string 'hello' give an index commadn that returns 'e'. Use the code below:"
144+
"Given the string 'hello' give an index command that returns 'e'. Use the code below:"
145145
]
146146
},
147147
{
@@ -213,7 +213,7 @@
213213
"cell_type": "markdown",
214214
"metadata": {},
215215
"source": [
216-
"Build this list [0,0,0] two seperate ways."
216+
"Build this list [0,0,0] two separate ways."
217217
]
218218
},
219219
{
@@ -258,7 +258,7 @@
258258
},
259259
"outputs": [],
260260
"source": [
261-
"l = [3,4,5,5,6]"
261+
"l = [5,3,4,6,1]"
262262
]
263263
},
264264
{
@@ -322,7 +322,7 @@
322322
"outputs": [],
323323
"source": [
324324
"# This will be hard and annoying!\n",
325-
"d = {'k1':[1,2,{'k2':['this is tricky',{'toughie':[1,2,['hello']]}]}]}"
325+
"d = {'k1':[1,2,{'k2':['this is tricky',{'tough':[1,2,['hello']]}]}]}"
326326
]
327327
},
328328
{
@@ -348,7 +348,7 @@
348348
"cell_type": "markdown",
349349
"metadata": {},
350350
"source": [
351-
"What is the major difference betwen tuples and lists?"
351+
"What is the major difference between tuples and lists?"
352352
]
353353
},
354354
{
@@ -558,8 +558,9 @@
558558
}
559559
],
560560
"metadata": {
561+
"anaconda-cloud": {},
561562
"kernelspec": {
562-
"display_name": "Python 3",
563+
"display_name": "Python [default]",
563564
"language": "python",
564565
"name": "python3"
565566
},
@@ -573,7 +574,7 @@
573574
"name": "python",
574575
"nbconvert_exporter": "python",
575576
"pygments_lexer": "ipython3",
576-
"version": "3.5.1"
577+
"version": "3.5.3"
577578
}
578579
},
579580
"nbformat": 4,

Objects and Data Structures Assessment Test-Solution.ipynb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -506,29 +506,29 @@
506506
},
507507
{
508508
"cell_type": "code",
509-
"execution_count": 33,
509+
"execution_count": 1,
510510
"metadata": {
511511
"collapsed": true
512512
},
513513
"outputs": [],
514514
"source": [
515-
"l = [3,4,5,5,6]"
515+
"l = [5,3,4,6,1]"
516516
]
517517
},
518518
{
519519
"cell_type": "code",
520-
"execution_count": 38,
520+
"execution_count": 2,
521521
"metadata": {
522522
"collapsed": false
523523
},
524524
"outputs": [
525525
{
526526
"data": {
527527
"text/plain": [
528-
"[3, 4, 5, 5, 6]"
528+
"[1, 3, 4, 5, 6]"
529529
]
530530
},
531-
"execution_count": 38,
531+
"execution_count": 2,
532532
"metadata": {},
533533
"output_type": "execute_result"
534534
}
@@ -540,18 +540,18 @@
540540
},
541541
{
542542
"cell_type": "code",
543-
"execution_count": 40,
543+
"execution_count": 3,
544544
"metadata": {
545545
"collapsed": false
546546
},
547547
"outputs": [
548548
{
549549
"data": {
550550
"text/plain": [
551-
"[3, 4, 5, 5, 6]"
551+
"[1, 3, 4, 5, 6]"
552552
]
553553
},
554-
"execution_count": 40,
554+
"execution_count": 3,
555555
"metadata": {},
556556
"output_type": "execute_result"
557557
}
@@ -1047,8 +1047,9 @@
10471047
}
10481048
],
10491049
"metadata": {
1050+
"anaconda-cloud": {},
10501051
"kernelspec": {
1051-
"display_name": "Python 3",
1052+
"display_name": "Python [default]",
10521053
"language": "python",
10531054
"name": "python3"
10541055
},
@@ -1062,7 +1063,7 @@
10621063
"name": "python",
10631064
"nbconvert_exporter": "python",
10641065
"pygments_lexer": "ipython3",
1065-
"version": "3.5.1"
1066+
"version": "3.5.3"
10661067
}
10671068
},
10681069
"nbformat": 4,

Objects and Data Structures Assessment Test.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
},
259259
"outputs": [],
260260
"source": [
261-
"l = [3,4,5,5,6]"
261+
"l = [5,3,4,6,1]"
262262
]
263263
},
264264
{
@@ -558,8 +558,9 @@
558558
}
559559
],
560560
"metadata": {
561+
"anaconda-cloud": {},
561562
"kernelspec": {
562-
"display_name": "Python 3",
563+
"display_name": "Python [default]",
563564
"language": "python",
564565
"name": "python3"
565566
},
@@ -573,7 +574,7 @@
573574
"name": "python",
574575
"nbconvert_exporter": "python",
575576
"pygments_lexer": "ipython3",
576-
"version": "3.5.1"
577+
"version": "3.5.3"
577578
}
578579
},
579580
"nbformat": 4,

0 commit comments

Comments
 (0)