Page 191 - Data Science Algorithms in a Week
P. 191

10









                                                  Python Reference








            Introduction

            Python is a general purpose programming and scripting language. Its simplicity and
            extensive libraries make it possible to develop an application quickly and compatible with
            the modern requirements on the technology. Python code is written in files with the suffix
            .py and can be executed with the command python.



            Python Hello World example
            A simplest program in Python prints one line of text.

            Input:

                source_code/appendix_c_python/example00_helloworld.py
                print "Hello World!"

            Output:
                $ python example00_helloworld.py
                Hello World!
   186   187   188   189   190   191   192   193   194   195   196