FAQ 1) What is Python? What are the benefits of using Python? Python is a programming language with objects, modules, threads, exceptions ... By Blogger September 02, 2018 Add Comment Edit
Glossary Quick reference guide to Python. ">>>" The default Python prompt of the interactive shell. Often seen for code examp... By Blogger September 02, 2018 Add Comment Edit
Dealing with the imperfect ...or how to handle errors So you now have the perfect program, it runs flawlessly, except for one detail, it will crash on invalid us... By Blogger September 02, 2018 Add Comment Edit
File IO Here is a simple example of file IO (input/output): # Write a file out_file = open("test.txt", "w") out_file.wri... By Blogger September 02, 2018 Add Comment Edit
Revenge of the Strings And now presenting a cool trick that can be done with strings: def shout(string): for character in string: print "Gimme a ... By Blogger September 02, 2018 Add Comment Edit
More on Lists We have already seen lists and how they can be used. Now that you have some more background I will go into more detail about lists. Firs... By Blogger September 02, 2018 Add Comment Edit
Using Modules Here's this chapter's typing exercise (name it cal.py (import actually looks for a file named calendar.py and reads it in. If ... By Blogger September 02, 2018 Add Comment Edit