home loan
Refer Your Friend
Apply
for
Real Estate
Services available in Delhi / NCR only
Forum Home   |    Search   |   Recent Topics   |  Hottest Topics    Register   |  Login 
Discussion forums » Upcoming Projects

Ask a Question
Topic: Cegonsoft Creating Python programs | Best Training Center  XML
Author Message
Jhonsam


Offline

Cegonsoft is a Bangalore based IT Training and Software Development center with an exclusive expertise in the area of HR consultancy. Cegon is a Dutch word meaning Never Ending, which implies that our service to you is unflinching. Cegonsoft with over a decade of proficiency and experience in the field of training and placement has mushroomed out into 4 branches in Bangalore, 4 branches in North Karnataka, 3 branches in Chennai, and 2 branches in Coimbatore.

About Python:
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.

Creating Python programs:

Welcome to Python! This tutorial will show you how to start writing programs.
Python programs are nothing more than text files, and they may be edited with a standard text editor program.[1] What text editor you use will probably depend on your operating system: any text editor can create Python programs. It is easier to use a text editor that includes Python syntax highlighting, however.

The first program that every programmer writes is called the "Hello, World!" program. This program simply outputs the phrase "Hello, World!" and then quits. Let's write "Hello, World!" in Python!
Open up your text editor and create a new file called hello.py containing just this line (you can copy-paste if you want):

print("Hello, world!")

This program uses the print function, which simply outputs its parameters to the terminal. print ends with a newline character, which simply moves the cursor to the next line.
Now that you've written your first program, let's run it in Python! This process differs slightly depending on your operating system.

Windows:
Create a folder on your computer to use for your Python programs, such as C:\pythonpractice, and save your hello.py program in that folder.
In the Start menu, select "Run...", and type in cmd. This will cause the Windows terminal to open.
Type cd \pythonpractice to change directory to your pythonpractice folder, and hit Enter.
Type python hello.py to run your program!
If it didn't work, make sure your PATH contains the python directory. See Getting Python.
Mac:
Create a folder on your computer to use for your Python programs. A good suggestion would be to name it pythonpractice and place it in your Home folder (the one that contains folders for Documents, Movies, Music, Pictures, etc). Save your hello.py program into this folder.
Open the Applications folder, go into the Utilities folder, and open the Terminal program.
Type cd pythonpractice to change directory to your pythonpractice folder, and hit Enter.
Type python hello.py to run your program!
Linux:
Create a folder on your computer to use for your Python programs, such as ~/pythonpractice, and save your hello.py program in that folder.
Open up the terminal program. In KDE, open the main menu and select "Run Command..." to open Konsole. In GNOME, open the main menu, open the Applications folder, open the Accessories folder, and select Terminal.
Type cd ~/pythonpractice to change directory to your pythonpractice folder, and hit Enter.
Type python hello.py to run your program!

For More Details Click:Cegonsoft Python Training

Cegonsoft
 
Discussion forums » Upcoming Projects
Message Quick Reply

Go to: