0% found this document useful (0 votes)
264 views

Tutorial - Learn Python in 10 Minutes - Stavros' Stuff - Stumble Upon

The document is a tutorial that aims to teach Python programming basics in 10 minutes. It acknowledges that a full understanding requires hands-on practice but highlights key concepts and syntax to get started. These include Python being strongly typed, dynamically typed, case sensitive, and object-oriented. The tutorial also notes the various ways programmers can get help while using Python, such as calling help on objects to view documentation.

Uploaded by

biafran5893
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
264 views

Tutorial - Learn Python in 10 Minutes - Stavros' Stuff - Stumble Upon

The document is a tutorial that aims to teach Python programming basics in 10 minutes. It acknowledges that a full understanding requires hands-on practice but highlights key concepts and syntax to get started. These include Python being strongly typed, dynamically typed, case sensitive, and object-oriented. The tutorial also notes the various ways programmers can get help while using Python, such as calling help on objects to view documentation.

Uploaded by

biafran5893
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Stumble! I like it!

Share All Interests


Login Sign up & save your
6 favorites
emailer33

Tutorial - Learn Python in 10 minutes


NOTE: If you would like some Python development done, my company,
Stochastic Technologies, is available for consulting.

Preliminary fluff
So, you want to learn the Python programming language but can't find a
concise and yet full-featured tutorial. This tutorial will attempt to teach
you Python in 10 minutes. It's probably not so much a tutorial as it is a
cross between a tutorial and a cheatsheet, so it will just show you some
basic concepts to start you off. Obviously, if you want to really learn a
language you need to program in it for a while. I will assume that you
are already familiar with programming and will, therefore, skip most of
the non-language-specific stuff. The important keywords will be
highlighted so you can easily spot them. Also, pay attention because,
due to the terseness of this tutorial, some things will be introduced
directly in code and only briefly commented on.

Properties
Python is strongly typed (i.e. types are enforced), dynamically,
implicitly typed (i.e. you don't have to declare variables), case
sensitive (i.e. var and VAR are two different variables) and object-
oriented (i.e. everything is an object).

Getting help
Help in Python is always available right in the interpreter. If you want to
know how an object works, all you have to do is call help(<object>)!
Also useful are dir(), which shows you all the object's methods, and
<object>.__doc__, which shows you its documentation string:

! +++,-./01%2 L
" 3./0,45,657,489.:7;
# 1.7:,.7:2
$ ,
% +++,<6=1%2
& >?@@A8B@@?C,?@@A<<@@?C,DDDE
' ,
( +++,A8BD@@<4:@@
) ?A8B15FG8.=2,!+,5FG8.=
!* ,
!! H.7F=5,7-.,A8B4/F7.,IA/F.,4J,7-.,A=KFG.57D?

You might also like