Introduction to Python


Contents

How to install Python on Linux
How to run a Python program
The basic of Python codes
Data expressions
Built-in functions in Python
Interactive input/output
Conditional statement for Python
Loop structure for Python
Creating your own functions
Python modules
Reading/writing files for Python
Error handling code
Object Oriented Programming (OOP)
Tkinter package for GNU programming


How to install Python on Linux

For Ubuntu Linux, you type following in the terminal to install Python:
$ sudo apt-get install python
There are various tools for Python. It is useful to install then before hand:
$ sudo apt-get install python-wxtools
Python for Windows is also available here.




Back to Electronics Page

Back to Hiro's Physics Main