Learning Python

learn python

Python is a powerful general-purpose programming language which is very easy to learn and then master. Python syntax is very human-like and easy to remember. In-spite of easy learning python is very useful and it is the most popular programming language now. Python is used in web development, building softwares, data science, and so on.

Learn python

The Zen of Python

From the PEP 20 — The Zen of Python, by Tim Peters.

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it. Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!

In Python command:

In python console type

import this
python zen

Writing your own first program

Now you know the python zen let’s write your first python program and type something. It has become a convention to introduce a programming language by demonstrating the “Hello, world” program. (for Python 3)

print('Hello World!')

So here we see python spits back what is given in the parenthesis after print command.

Learn Math in Python

Most of the mathematical operators are the same in python like ones in math classes.

OperatorsOperationExample
+Addition1+2=3
Subtraction3-2=1
*Multiplication2*3=6
/Division6/2=3
//Integer division5//2=2
%Remainder5//2=1
**Exponent2**3=8
Mathematical operators

Here we can see we use python print function to get the results of mathematical operation. And we can print multiple elements at the same time.

This ends the first tutorial on learn python. If you are interested visit this category

13 thoughts on “Learning Python”

  1. Immunize gof.qqpe.datalators.com.cya.nx actions, [URL=http://a1sewcraft.com/buy-plaquenil/ – plaquenil online uk[/URL – [URL=http://weblabhn.com/product/fildena/ – buy fildena online[/URL – [URL=http://allgeekguide.com/drugs/viagra-100mg/ – viagra generic 100mg[/URL – [URL=http://center4family.com/generic-hyzaar/ – generic hyzaar[/URL – generic hyzaar [URL=http://bibletopicindex.com/drugs/buy-cialis-online/ – best cialis deal[/URL – [URL=http://themusicianschoice.net/discount-brand-name-cialis/ – que cialis[/URL – [URL=http://monticelloptservices.com/product/lyrica/ – lyrica medicine[/URL – lyrica medicine [URL=http://fashionbillie.com/drugs/cialis-uk/ – canadian cialis generic[/URL – [URL=http://acupunctureandnutritionclinic.com/product/vidalista/ – generic vidalista from india[/URL – [URL=http://aminahsorganicskinspa.com/drugs/flagyl/ – flagyl antibiotic[/URL – [URL=http://shirley-elrick.com/product/cialis/ – generic cialis tadalafil india[/URL – [URL=http://deweyandridgeway.com/levitra-generic/ – levitra 20 mg price[/URL – levitra 20 mg prices [URL=http://govtjobslatest.org/drugs/zithromax/ – purchase zithromax[/URL – [URL=http://shirley-elrick.com/product/professional-viagra/ – viagra professional without prescription[/URL – viagra professional [URL=http://traumaplasticsurgery.com/product/zantac/ – cheap zantac online[/URL – lichenoid weight-loss leishmaniasis, buy cheap plaquenil buy plaquenil fildena from india viagra discount cheap hyzaar cialis.com lowest price cialis age cialis hydroxycut lyrica price lyrica cheap tadalafil 20mg prices for vidalista giardia metronidazole cats cialis pills levitra 20 mg generic azithromycin 250mg viagra professional generic for zantac zantac kinds http://a1sewcraft.com/buy-plaquenil/ plaquenil tablets http://weblabhn.com/product/fildena/ fildena http://allgeekguide.com/drugs/viagra-100mg/ buy viagra no prescription http://center4family.com/generic-hyzaar/ hyzaar lowest price http://bibletopicindex.com/drugs/buy-cialis-online/ cialis.com lowest price http://themusicianschoice.net/discount-brand-name-cialis/ carpet cleaning supply cialis http://monticelloptservices.com/product/lyrica/ lyrica lyrica 200mg http://fashionbillie.com/drugs/cialis-uk/ cheap tadalafil 20mg http://acupunctureandnutritionclinic.com/product/vidalista/ prices for vidalista http://aminahsorganicskinspa.com/drugs/flagyl/ canine metronidazole http://shirley-elrick.com/product/cialis/ cialis canadian pharmacy http://deweyandridgeway.com/levitra-generic/ levitra generic http://govtjobslatest.org/drugs/zithromax/ where to buy azithromycin http://shirley-elrick.com/product/professional-viagra/ walmart viagra professional price http://traumaplasticsurgery.com/product/zantac/ low price zantac earliest anus.

  2. We absolutely love your blog and find nearly all of your post’s to be exactly what I’m looking for. Would you offer guest writers to write content for you personally? I wouldn’t mind producing a post or elaborating on some of the subjects you write concerning here. Again, awesome web log!

  3. Nice post. I was checking continuously this blog and I am impressed! Extremely useful information particularly the last part 🙂 I care for such info a lot. I was looking for this particular information for a long time. Thank you and best of luck.

  4. Definitely believe that that you said. Your favourite reason appeared to be at the internet the simplest thing to understand of. I say to you, I definitely get annoyed at the same time as people think about worries that they just do not know about. You managed to hit the nail upon the highest and outlined out the whole thing with no need side effect , other folks could take a signal. Will probably be again to get more. Thanks

  5. You can definitely see your skills within the work you write.
    The arena hopes for even more passionate writers such as you who aren’t afraid to say how they believe.
    All the time go after your heart.

  6. Hello There. I found your weblog the use of msn. This is a really smartly written article.

    I will be sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll definitely return.

  7. Hi there, I found your web site by means of Google even as looking for a
    comparable subject, your site came up, it
    appears great. I have bookmarked it in my google bookmarks.

    Hello there, just turned into aware of your blog thru Google,
    and located that it is really informative.
    I am going to be careful for brussels. I’ll be grateful in case you continue this
    in future. Many other people might be benefited from
    your writing. Cheers!

  8. A fascinating discussion is definitely worth comment. I think that you
    ought to write more about this subject matter, it may not be a taboo matter but generally people do not talk about such issues.
    To the next! Best wishes!!

Leave a Comment

Your email address will not be published.