Programming Tutorials

Python Tutorials

41. Formatted printing in Python

By: Zed A. Shaw : 2011-03-04

Description: Printing and formatting the printing is done quite often in any program. This simple python script just shows different ways of printing text and characters in python.


42. Printing in Python

By: Zed A. Shaw : 2011-03-04

Description: Printing and formatting the printing is done quite often in any program. This simple python script just shows different ways of printing text and characters in python.


43. Strings And Text in Python

By: Zed A. Shaw : 2011-03-04

Description: A string is usually a bit of text you want to display to someone, or "export" out of the program you are writing. Python knows you want something to be a string when you put either " (double-quotes) or ' (single-quotes) around the text.


44. Variables And Printing in Python

By: Zed A. Shaw : 2011-03-04

Description: Now we'll do even more typing of variables and printing them out. This time we'll use something called a "format string". Every time you put " (double-quotes) around a piece of text you have been making a string. A string is how you make something that your program might give to a human. You print them, save them to files, send them to web servers, all sorts of things.


45. Variables And Names in Python

By: Zed A. Shaw : 2011-03-04

Description: Now you can print things with print and you can do math. The next step is to learn about variables. In programming a variable is nothing more than a name for something so you can use the name rather than the something as you code. Programmers use these variable names to make their code read more like English, and because they have lousy memories. If they didn't use good names for things in their software, they'd get lost when they tried to read their code again.


46. Numbers And Math in Python

By: Zed A. Shaw : 2011-03-04

Description: Every programming language has some kind of way of doing numbers and math. Do not worry, programmers lie frequently about being math geniuses when they really aren't. If they were math geniuses, they would be doing math, not writing ads and social network games to steal people's money.


47. Comments And Pound Characters in Python

By: Zed A. Shaw : 2011-03-04

Description: Comments are very important in your programs. They are used to tell you what something does in English, and they also are used to disable parts of your program if you need to remove them temporarily. Here's how you use comments in Python:


48. Your First Program in Python

By: Zed A. Shaw : 2011-03-04

Description: A simple Hello World tutorial to get you started with Python programming. Type the above into a single file named ex1.py. This is important as python works best with files ending in .py.


49. Installing gedit for python programming in Linux

By: Zed A. Shaw : 2011-03-04

Description: Linux is a varied operating system with a bunch of different ways to install software. I'm assuming if you are running Linux then you know how to install packages so here are your instructions: