Skip to content

Commit 8e88cb8

Browse files
committed
Added exit() to Python Intro
Added exit() instruction so participants can be ready to set up the vm next
1 parent 4003a64 commit 8e88cb8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

python_introduction/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ Now, try writing the following command:
214214

215215
>>> django_dolls = {'Dottie' : 15, 'Lottie' : 305, 'EmmyLou' : 17}
216216

217-
Don't be surprised with the weird names. Go to the link: http://hubpages.com/hub/50-Doll-Names to look for more cute doll names. :P Just Kidding (You should do this if and only if you have a lot of time).
217+
Don't be surprised with the weird names. Go to the link: http://hubpages.com/hub/50-Doll-Names to look for more cute doll names. :P Just Kidding (You should do this if and only if you have a lot of time).
218218

219-
Above, you just created a variable named django_dolls with three key-value pairs. The key Dottie points to the value 15, Lottie points to the value 305, EmmyLou points to the value 17.
219+
Above, you just created a variable named django_dolls with three key-value pairs. The key Dottie points to the value 15, Lottie points to the value 305, EmmyLou points to the value 17.
220220

221221
When to use a dictionary or a list? Well, a good point to ponder on. Just have a soltuion in mind before looking at the answer in the next line.
222222

@@ -232,7 +232,7 @@ Like the lists, using len() method on the dictionaries, returns the number of ke
232232
>>> len(django_dolls)
233233
4
234234

235-
I hope it makes sense uptil now. :) Ready for some more fun with Dictionaries? Hop on the next line for some amazing things.
235+
I hope it makes sense uptil now. :) Ready for some more fun with Dictionaries? Hop on the next line for some amazing things.
236236

237237
You can use del() command to delete an item in the dictionary which has particular. Say, if you want to delete the entry corresponding to the key Dottie, just type in the following command:
238238

@@ -248,7 +248,7 @@ Apart from this, you can also change a value associated with an already created
248248
>>> django_dolls
249249
{'Jilly': 100, 'EmmyLou': 17, 'Lottie': 305}
250250

251-
As you can see, the value of the key 'Jilly' has been altered from 67 to 100. :) Exciting? Hurrah! You just learnt another amazing thing.
251+
As you can see, the value of the key 'Jilly' has been altered from 67 to 100. :) Exciting? Hurrah! You just learnt another amazing thing.
252252

253253
### Summary
254254

@@ -520,6 +520,10 @@ You can also use `for` on numbers using the `range` method:
520520

521521
Note that the second of these two numbers is not included in the list that is output by Python (meaning `range(1, 6)` counts from 1 to 5, but does not include the number 6).
522522

523+
## Exiting Python
524+
525+
You can exit Python and return to the command line using `exit()`.
526+
523527
## Summary
524528

525529
That's it. __You totally rock!__ This really wasn't so easy, so you should feel proud of yourself. We're definitely proud of you for making it to here!

0 commit comments

Comments
 (0)