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

39 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!!

  9. This design is incredible! You obviously know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job.
    I really enjoyed what you had to say, and more than that,
    how you presented it. Too cool! games ps4 185413490784 games ps4

  10. Hey! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly?

    My weblog looks weird when viewing from
    my iphone. I’m trying to find a theme or plugin that might be able to fix this problem.
    If you have any recommendations, please share. Thank you!

  11. great submit, very informative. I wonder why
    the opposite specialists of this sector don’t understand
    this. You should proceed your writing. I am confident,
    you have a great readers’ base already!

  12. We’re a group of volunteers and opening a new scheme in our community.
    Your site offered us with valuable information to work on. You
    have done a formidable job and our whole community will be thankful to you.

  13. Thanks for another magnificent article. The place else may
    anyone get that type of info in such a perfect means of writing?
    I’ve a presentation next week, and I am at the look for such information.
    0mniartist asmr

  14. I must thank you for the efforts you’ve put in writing this blog.
    I’m hoping to view the same high-grade blog posts by you
    in the future as well. In fact, your creative writing abilities has motivated me to get my
    very own website now 😉 asmr 0mniartist

  15. Hmm it seems like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up
    what I had written and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog writer but I’m still new to everything.

    Do you have any recommendations for beginner blog writers?
    I’d certainly appreciate it.

  16. Please let me know if you’re looking for a article author for
    your site. You have some really good posts and I
    believe I would be a good asset. If you ever want to take
    some of the load off, I’d love to write some articles for your blog in exchange
    for a link back to mine. Please send me an email if interested.
    Thanks!

  17. Thank you for any other wonderful post. The place else could anybody get that kind of info in such an ideal manner of writing?
    I have a presentation next week, and I am on the search for such
    info.

  18. When someone writes an article he/she retains the thought of a user in his/her brain that how
    a user can understand it. Thus that’s why this paragraph is outstdanding.
    Thanks!

  19. I’m gone to tell my little brother, that he should also pay a quick visit this webpage on regular basis to take updated from most up-to-date reports.

  20. We are a group of volunteers and starting a new scheme in our community.
    Your site offered us with valuable information to
    work on. You have done an impressive job and our whole community will
    be grateful to you.

  21. Hello! This is my first comment here so I just wanted to give a quick shout out and say I really enjoy reading your blog posts.
    Can you recommend any other blogs/websites/forums that
    deal with the same topics? Thank you!

  22. An interesting discussion is worth comment. I do think that you ought to write more on this issue, it might not be a taboo
    matter but usually folks don’t talk about these subjects.
    To the next! All the best!!

Leave a Comment

Your email address will not be published.