You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
218
218
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.
220
220
221
221
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.
222
222
@@ -232,7 +232,7 @@ Like the lists, using len() method on the dictionaries, returns the number of ke
232
232
>>> len(django_dolls)
233
233
4
234
234
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.
236
236
237
237
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:
238
238
@@ -248,7 +248,7 @@ Apart from this, you can also change a value associated with an already created
248
248
>>> django_dolls
249
249
{'Jilly': 100, 'EmmyLou': 17, 'Lottie': 305}
250
250
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.
252
252
253
253
### Summary
254
254
@@ -520,6 +520,10 @@ You can also use `for` on numbers using the `range` method:
520
520
521
521
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).
522
522
523
+
## Exiting Python
524
+
525
+
You can exit Python and return to the command line using `exit()`.
526
+
523
527
## Summary
524
528
525
529
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