Python Forum
Intuitively understanding Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intuitively understanding Python
#4
Python is programming language.

What you have to do to master spoken language? You must learn words and their meaning. You have to differentiate nouns and verbs etc. You have to know how to construct sentences (is noun before or after the verb?). You must understand is it past, present or future tense and so on and on. One will never learn all this without practice. You must practice language in order to master it. You may learn a language for extensive period of time and still feel lost.

At the end of the day programming is an idea in spoken language translated into programming language. Python makes this translation relatively easy, but as with spoken language - if you don't have anything to say then there is nothing to translate.

One way is to spell solution/algorithm in spoken language and then try to translate it into Python.

Problem: keep only even numbers from sequence of numbers.
Solution in spoken language: go through all numbers and check if number is even, if so keep this number.
Solution in Python: try to translate solution in spoken language into Python

One should always have a plan or idea or algorithm what to do in order to achieve desired result. Only after that you can start with how and actual code.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Intuitively understanding Python - by iofhua - Feb-03-2020, 05:28 PM
RE: Intuitively understanding Python - by Jan_97 - Feb-04-2020, 08:58 PM
RE: Intuitively understanding Python - by micseydel - Feb-04-2020, 11:47 PM
RE: Intuitively understanding Python - by perfringo - Feb-05-2020, 08:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Understanding Python version releases venami 3 3,109 Aug-24-2018, 09:56 PM
Last Post: venami

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020