Chapter 10 First Python Program
As all other programming books, we begin with a “Hello world” program.
#!/usr/bin/python
#Printing a line of text “Hello, Bioinformatics”
print("Hello, Bioinformatics!\n")
This program show how to display a line a text in Python. It have several features. We go through each line in detail.
Line 1 is what we call shebang line. This line starts with shebang construct (#!
). /usr/bin/python
indicates the path of the Python interpreter.
Line 3 shows how to print a line of text in Perl. Nearly all programming language use print to display texts on the screen. Here, print is a built-in function in Perl. It print the string of characters (its arguments) between quotation marks (“” or ’’).