[Tutor] Learn Python

Alan Gauld alan.gauld at yahoo.co.uk
Sun Jun 11 13:15:05 EDT 2023


On 10/06/2023 20:08, Azmat Ullah Baig wrote:
> I want to become python expert but I dont have any knowledge about it. How
> can you help me?

To become an expert in anything takes a lot of time and effort.
It also depends on where you start.
Can you already program in another language?
 - Basic, Java, Javascript, Lisp etc?
That will make the basic concepts in Python much easier to learn.

If not, you need to learn the ideas behind programming as well as
how Python implements those concepts. For example most programs
consist of a few basic structures:
- sequences of individual instructions or commands
- repeated groups of instructions (aka loops)
- optional instructions selected by some condition(aka branching
  or selection)

The idea of selecting introduces a whole bunch of new ideas
around the concept of logic, and in particular, binary
(aka boolean) logic.

Other topics to consider are data structures(lists, sets,
dictionaries etc) and how to read data (from users, files,
database, networks etc) and how to store it again.
Also how to present data to the user(GUI, web page, terminal,
printer etc)

So there is a lot of ground to cover, but most of the ideas are the same
regardless of programming language, you just need to know how your
chosen language "spells" those ideas. The good news is that none of
these concepts is that difficult to grasp, it is just that there are a
lot of them. And computers are very unforgiving of mistakes, so spelling
a word wrong, or getting the punctuation just slightly out will result
in an error.

The more code you write the easier it becomes.
Meantime, we are here to answer questions, explain concepts
that you might find difficult, help resolve errors etc.

When you do ask questions be sure to be as specific as possible.
Include the code, any error messages and sample output if the data
seems "wrong". Post in plain text because code formatting is critically
important in Python. And don't send screenshots because the server
strips them as potential security issues. Cut n paste code.

Finally, don't rely on AI tools(like chatGPT). These are useful
when you know enough to evaluate the answer, but they can be
misleading (and even flat out wrong) if you take them at face value.

So, find yourself a training course/tutorial, make a start and ask
questions here. Enjoy the ride.

A good place to pick a tutorial is here:

http://wiki.python.org/moin/BeginnersGuide
It has links to lists of tutorials for both existing programmers (in
other languages) or complete beginners with no programming experience.

<shameless plug>
Or you could try mine :-)
(see below)
</shameless plug>


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos





More information about the Tutor mailing list