Tips on how to learn Python by yourself

Search for a command to run...

No comments yet. Be the first to comment.
I created this post for future reference, with my own examples as I was following along some basic Svelte tutorials that can be found here ( https://svelte.dev/tutorial/ ) Svelt script for first letter uppercase/capital <!-- App.svelte --> <script> l...

Assume we have 2 different sets of code written differently but solve the same problem and run like this: { Code 1 } # after execution: runtime: 3 seconds memory allocated: 20 GB { Code 2 } # after execution: runtime: 40 seconds memory allocated: 1 G...

Download and install the Google Chrome browser if you don't already have it installed Open the dev tools with F12 or by following the picture below For better control open the dev tools in a separate window Then you can fullscreen it and naviga...

A company's success or failure may be determined by the ability of a website to effectively communicate its message, encourage customers to do certain activities, and promote its products or services through various marketing channels. If a company ...

Learn python by finding a tutorial series in a form that fits your learning style and stick to it. It can be a video course, a book, or something in between. Apply what you are being taught and mix it up while you do so with examples of your own. To profit from your journey make sure to apply the following tips.
When it comes to mastering a new programming language, maintaining a level of consistency is critical. The best way to learn to code is to make it a daily habit. Having a daily coding habit can help you build muscle memory, which has a significant impact on programming. Follow along with tutorials, either video, or text and type it all out on your own (instead of copying and pasting). From experience, I can tell you that the best thing you can do is have a project of your own and practice solving it every day.
You must address the essentials of the subject. Working through complicated tutorials, projects, or challenges will be difficult if you don't comprehend the fundamental concepts and terminology used. Some of the important ones follow.
One of the easiest methods to solve problems when working on Python exercises, examples, and projects is to learn from other Python developers. Run a search on the internet using terms related to your mistake. StackOverFlow, Stack Exchange, and Quora are just a handful of the prominent community-based forums where you may get answers to common questions about programming.
Join a Python group on Reddit, Facebook, or any other network you might be using. If you can't find the answer on the results of Google then you can always post in one of these groups. There are many developers who will gladly help you out with your code and will happily explain to you anything you don't understand.
The interactive Python shell is a great way to learn about fundamental Python data structures (such as lists or dictionaries) for the first time or to troubleshoot an application. Another way of understanding your code better is by using print all over your code.
Encountering a problem in your code is something we have to address. When you begin building sophisticated programs (let's call them that), you will encounter flaws in your code at some point, and the code will either create errors or not execute the way you want it to. These are called "bugs". It is not only normal, it is part of the daily routine for every programmer. So don't let bugs get the better of you. Instead, take pleasure in these situations to learn why the code isn't running as it should and even revisit some of the fundamentals of python.
Studies show that writing down your thoughts is a good method for retaining information over the long term. If you're interested in working as a full-time software developer, you'll want to practice writing code on a sheet of paper. Writing down your ideas by hand might help you organize your thoughts before switching to a computer. Also, summarizing what you've learned can be essential. This can take the form of a cheat sheet, which will help you in the future tremendously. Ideally, I'd suggest you keep notes in your hashnode blog. You'll always have access from everywhere, and other people will benefit from your notes as well. Don't forget that you can always benefit from notes and cheat sheets made by others if you search for them.
Learning something is best done through teaching it. In the case of Python, or any other programming language really, this is very beneficial. Writing blog entries describing new ideas, making videos outlining what you've learned, or just the act of preparing tutorials by yourself are all excellent options for this. Heck, you might even write a book while you're at it! The most important part of teaching is that it helps you strengthen and identify any gaps in your knowledge.