Introduction Python is a freeware open-source cross-platform interpreted scripting language used by NASA , Google , Honeywell and many other companies and now days its also being distributed along with all the major GNU/Linux distros. Its been one the most favoured scripting languages due to its short and easy syntax which can perform complex tasks and is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications. Many people migth have tried using python before but on 03 Dec 2008 Python 3.0 was released which is a major update to python syntax making its interpreter faster and more efficient.

Installing Python 3.0 1)For Windows Go to http://python.org/download/ and download software depending on your OS's architecture 2)Linux a) First Search in your Package Manager for python 3.0 (it probably is installed) if not try to install from the repos else: Go to http://python.org/download/ and download the bz package and extract it. b) Open a terminal in root / superuser mode cd where is the path . c)

./configure

d)

make

e) make altinstall

(this preserves current python version , else do make install)

If you get any dependency errors ,don't be scared just try to find them using your package manager or use google to find them. For Old Python Users: – Basic syntax had changed but you would get used to it. – There's a tool to convert old syntax scripts to new 2to3 .(unstable)

Getting Started -Windows users can add python to their environment variables My Computer>Properties>(Advanced System Settings in vista)>Advanced Go to Environment Variables >Scroll bottom scroll bar, select PATH and click edit Add to the end ;; Now a script can be written anywhere and executed by python in dos -Open DOS or terminal and enter python or python3.0 .Upon pressing enter an interactive shell shall open with current python version and install date and time and OS type you are using.

Basics - print(“Hello”) prints Hello , to know more about any command use help() so help(print) brings the command info. -Unlike older versions python now classifies strings into data and text. All Text is Unicode represented by type str and all data is encoded Unicode represented as binary data by byte. Both are immutable cannot be inter-converted as in older versions. -A python script can be written by writing the code in a text file with extension .py Also in Linux / Unix based systems the first line can give the interpreter version #!/usr/bin/env python

or #!/usr/bin/env python3.0

(If you have multiple versions of python its HIGHLY recommended to stick to 3.x versions) -Python is strictly indentation based, so give same indentation at each level. Eg.

i=0

1

while i<5:

2

print (i)

3

i+=1

4

So inside the file line 1 & 2 have same indentation while those inside while loop (line 3 &4) have same indentation but different from outside level. (To Be Continued ..) For FAQS and More Info Visit http://docs.python.org/dev/3.0/ or http://docs.python.org/

Introduction Installing Python 3.0

Dec 3, 2008 - perform complex tasks and is easily extended with new functions and data types implemented in C or C++ (or ... shall open with current python version and install date and time and OS type you are using. Basics ... represented by type str and all data is encoded Unicode represented as binary data by byte.

78KB Sizes 2 Downloads 137 Views

Recommend Documents

Installing GCP SDK python -
Apr 15, 2015 - (if you want to build out this developer environment on a Google Compute Engine, ... some-gcp-service-acct.apps.googleusercontent.com.

Installing GCP SDK python -
Apr 15, 2015 - generate a new JSON key (for use with google api client used to access ... To complete the base modules needed by the GCP SDK, also run.

Replicator-G Sailfish 40R23 installing python and pypy -
Replicator-G Sailfish 40R23 installing python and pypy. Download the following files. http://www.thingiverse.com/thing:32084 Get the Latest Sailfish Rep-G from ...

Introduction to Programming in Python
[PDF-Download] Introduction to Programming in. Python: An ... Computer Systems: A Programmer's Perspective, Global Edition · Effective Python: 59 Specific ...

Python Programming : An Introduction to Computer Science
The translation process highlights another advantage that high-level languages have over ma- chine language: portability. The machine language of a computer is created by the designers of the particular CPU. Each kind of computer has its own machine

Introduction to Scientific Computing in Python - GitHub
Apr 16, 2016 - 1 Introduction to scientific computing with Python ...... Support for multiple parallel back-end processes, that can run on computing clusters or cloud services .... system, file I/O, string management, network communication, and ...

Installing OSCARS 0.6 - GitHub
... memory recommended. • 30GB of hard disk space ... Please note these: a. RPMs do not perform any “merge” of data in case you have both 0.5 and 0.6 tables.

Installing Unity.pdf
Importing Assets..............................................................................................................................................11. Creating main menu .....................................................................

Installing Bashpodder by Knightwise.com
Download Bashpodder from the Bashpodder website. Head on over to ... Check if the file is available by typing ls and ENTER. Installing Bashpodder by ... Do this by typing ls (in this example ls 2009-03-03). Installing ...

30 Chairs in 30 Hours
Jan 22, 2018 - 3. Cut and assemble your chair. Use what you learn from the 7s challenge to complete your design. Draw, cut and assemble your finished project and submit it to us in the Project Space. Rules. 1. Two people per group. 2. Two chairs per

Railgun Installing the extension - GitHub
Jun 12, 2010 - way better than having just a shell! Page 2. Now you can call functions on the target system: >> client.railgun.user32.MessageBoxA(0 ... Page 3 ...