Friday, November 25, 2016

What is python? How to create a python program?

What is python? How to create a python program?



Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed. (Source: www.python.org)

From the description then we know python different with c/c++,pascal, and other programming language using IDE. After installing python you will just get the interpreter and an IDLE, you can start write program using that. Here the steps:

1. Open windows search and search for keyword "IDLE" you will get result IDLE(Python GUI) - just open it.

2. The window shuld be like this


you won't able to write the syntax because it is the shell. If you want to create a program you should create a new file, just go to File - New or press CTRL+N. 
Now you will get a new window.


3. Start write a simple program

    print "Hello world"

4. Run the program using F5 or tab Run. You need to save the file on .py formatting before running the program. After save sucess full, the shell will launch again to showing the result.

5. DONE. Just practice for other syntax to advance your skill

- A wiseman always write a comment #Mine *awkward quotes xD

0 comments:

Post a Comment