well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ ..

Dani AI

Generated

Good thread so far — has the right idea using videos, points out there are lots of visual resources, and 's emphasis on an interactive workflow and trying different editors/IDEs is spot on. Add a short, practical starter plan that turns watching/reading into real, repeatable progress.

Install a recent Python 3 release (Python 2 is no longer maintained). Work inside an isolated environment so projects don’t conflict. Typical quick workflow:

# create and activate a venv (macOS/Linux)
python3 -m venv env
source env/bin/activate

# Windows PowerShell
python -m venv env
.\env\Scripts\Activate.ps1

# install packages reproducibly
python -m pip install --upgrade pip
python -m pip install requests

Keep learning by doing: open an interactive prompt, test tiny pieces of code, then save them to a file and run that file. Example starter script to practice saving and running:

# hello.py
def greet(name):
    return f"Hello, {name}"

if __name__ == "__main__":
    print(greet('world'))

Run it with python hello.py.

Two quick troubleshooting notes that save time: (1) Indentation errors are usually tabs vs spaces — configure your editor to insert spaces and show whitespace. (2) If pip seems to install to a different Python, use python -m pip install ... so the package goes to the Python you’re running. For Windows, the py -3 launcher is often useful to choose Python 3. Finally, pair short videos with one small project (a CSV processor, a filename-renamer, or a tiny web-scraper) and put it under version control; that combination cements the basics far faster than watching alone.

Recommended Answers

All 2 Replies

The first thing I would recommend in starting out with Python is finding a good Integrated Development Environment, oe IDE; while IDLE, the one that comes with Python, is passable, it is not really new-user friendly and takes a bit of getting used to. Unfortunately, 'good' is very subjective when it comes to IDEs, so you might find yourself trying a few before you come across the best fit. This thread and this one discuss the matter at length, without really giving a solid answer, for example. My personal choices are PyCharm (if you are willing to shell out for it) and Eric (which is free), but they might be a bit overwhelming to a novice. If you are planning to stick with Python 2 - not recommended, but many do - then Dr Python is excellent for novices. Still, you need to try a few out to get the one you are comfortbale with.

So why is the IDE so important, when all you really need is Notepad and an open shell window? Convenience, primarily. A good Python IDE will have both an editing window and an interpreter window in plain sight, making it easy to use the Python listener (the interactive interpreter) to test things in, while still having access to the program you are writing. Also, a good IDE makes it easier to work with more than one source module, when you get to that point in your programming, with 'package' or 'project' managers to keep things straight for you. Finally, a good IDE will have features for command line arguments and environment management. IDLE, while simple, falls down on all these things, and is clumsy to work with.

Regardless of the IDE you choose, I recommend starting off experimenting and getting familiar with the Python interactive interpreter before trying to write any scripts. Sit down with the listener open (either in a command shell like Windows PowerShell, or in your choice of IDE), and just play around with it. try some simple one-line expressions and see what they do. Keep in mind, though, that what you do in the interactive interpreter isn't saved, so when you feel like you want to write something permanent, go to your editor window and write it out there.

FInally, while videos are helpful, I recommend finding a good book to really learn the language well. IMAO, the best one right now is Think Python, an updated version of the classic How to Think Like a Computer Scientist. You can buy the print or Kindle version, but the whole book is also available online, as well. It is an excellent start, even though it does use some non-standard libraries, and goes step by step through the whole thing. An alternative would be Dive Into Python 3, which is also excellent but geared a bit more towards experienced programmers. A bit more challenging but in some ways more effective is Learn Python the Hard Way, while is free to try but you would need to buy it for the full course, which combined an online book with several videos if I am not mistaken. It also covers details not found in other books, like how to look up things with Google effectively and how to use the interactive interpreter from the shell.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.