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.

//Integer division5//2=2
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. 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.

  2. 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.

  3. 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!!

  4. 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!

  5. 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!

  6. 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.

  7. 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.

  8. 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

  9. 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.

  10. 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!

  11. 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!!

  12. scoliosis
    Today, I went to the beach front with my children. I found a sea shell and gave it to my 4
    year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and
    screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is entirely
    off topic but I had to tell someone! scoliosis

  13. Hi, i think that i saw you visited my site so i got here
    to go back the prefer?.I am attempting to find things to improve my site!I
    guess its good enough to make use of a few of
    your ideas!!

  14. What i don’t understood is if truth be told how you’re no longer actually much more smartly-favored than you
    might be right now. You are very intelligent. You realize therefore significantly on the subject of this subject, produced me personally believe it
    from numerous various angles. Its like men and women aren’t interested except it’s something to accomplish with Woman gaga!
    Your own stuffs outstanding. Always care for it up!

  15. Hmm is anyone else having problems with the pictures
    on this blog loading? I’m trying to figure out if its a
    problem on my end or if it’s the blog. Any feedback would be greatly appreciated.

  16. Pingback: Google

Leave a Comment

Your email address will not be published.