0
Learning python
Hi! Please give me some advice on how to learn how to solve problems effectively? I started learning Python not so long ago (about three months ago). I spent a month and a half studying the theory in detail and another month and a half on practical tasks that I took from the collections of exercises and the CodeWars website. But I still can't solve more complex tasks (for example, tasks on the CodeWars 6 kyu website and some 7 kyu tasks). Maybe I should practice something else?
4 Antworten
+ 5
Hi Dmitry
Solving problems effectively is a skill that takes time and practice to develop. Here are some tips that might help you improve your problem-solving skills in Python:
Start by understanding the problem. What is the problem asking you to do? What are the inputs and outputs? What are the constraints? Once you understand the problem, you can start to think about how to solve it.
Break the problem down into smaller steps. This will make the problem seem less daunting and more manageable.
Use pseudocode to plan your solution. Pseudocode is a way of writing down your solution without having to worry about the syntax of Python. This will help you to think through the logic of your solution before you start coding.
Start coding and don't be afraid to make mistakes. Everyone makes mistakes when they're learning to code. The important thing is to learn from your mistakes and keep trying.
Use online resources for help. There are many online resources available to help you learn Python and solve problems.
+ 4
If you have already tried codewars, that's great. I think it is an awesome resource for intermediate learners like yourself. Because you can actually check other people's solutions after you have tried, struggled and managed to solve yourself. For Python there are usually loads of solutions posted. The most highly voted, may not be the only interesting one. You can see how other people approach the same problem, you can compare their thought process with your own. If you see something useful, try to apply it in your own code next time.
There are a handful of patterns that come up regularly with these tasks. What is the most efficient data structure for a particular situation. How to take advantage of functions in the standard library. How to design functions and build more complex code from small blocks. How to use recursion and dynamic programming. It takes time to master these techniques, with lots of practice it is possible.
+ 2
Tibor Santa, thanks !
+ 1
PRINCE KUMAR, thank you very much for the advice!