First python hello world

Posted on 31 May, 2019 by Administrator

First python hello world

1. What is Python:

Python is an Interpreter Language – it directly executes programming without converting them into an object code or machine code like compiler do ( interpreter like php)

Currently, Python has 2 main branches: 2.x and 3.x. At branch 2.x

stopped growing and is standing at version 2.7. Branch Python 3.x is still developing.

Python website official: www.python.org

2. Install

Python supports most platforms and is easy to find on some operating systems like Mac OS, Windows, Linux

Link download: https://www.python.org/downloads/

To know if your system has Python installed, can enter command line screen and type:

$ python --version

If python is installed, it will display version information python. If an error occurs, it means you have not installed it yet.

3. IDE

By using a text editor, you can write code python or can use more advanced tools (IDE) The IDE usually supports more command line parser, debug ... in scope

For professional or community you can use Pycharm IDE: https://www.jetbrains.com/pycharm/

First hello world python

For opensource you can use Apatana Studio: http://www.aptana.com/ vs Pydev

Watch tutorial to know more how to install Aptana vs Pydev in windows

In this tutorial I aim to implement it python with the Aptana and I am using python3

4. First hello world program

Create a file name helloworld.py and enter command like below

print("Hello World")

print is the most basic command to export a variable (usually screen)

Then, go to the command line screen, move to the folder containing this file and type.

python3 helloworld.py

If you see the Hello World text, you have finished writing the first python application. You can code via my IDE online below here

Tags: python3, python

Comments

New blog posts

String and number in python
String and number in python

8 June, 2019 by Administrator

1. String data type All programming...

Variables expressions and statements in python
Variables expressions and statements in python

2 June, 2019 by Administrator

1. Value and type Value is one of...

First python hello world
First python hello world

31 May, 2019 by Administrator

1. What is Python: Python is an Interpreter...

View all blog entries →

Give away $50 Digital Ocean