I want Help Understanding a Coding Concept for My Project

Hi everyone,

I am working on a programming project and I ran into some confusion with a specific concept. I have been trying to wrap my head around how to efficiently use loops & conditionals together to solve problems but sometimes my code ends up being messy or not working as expected. I have read some tutorials and even started an AWS Devops Training but I still feel such as I am missing something important that could make my code cleaner & easier to understand.

Could someone please explain the best approach to combine loops & conditionals in a way that makes the logic clear & the code efficient
Also i have check this Difficulty Understanding Dynamic Programming Problems on Portal Loop I appreciate any simple examples or tips that can help me improve my coding style. Also if there are any common mistakes I should watch out for that would be great to know.

Thank you.:slight_smile:

Hi,

First of all, we would like to thank you for reaching out and for sharing your experience of applying the knowledge gained on Petlja to a real-world project.

Our recommendation would be to use Python as the language in which to master the basics—this is the standard approach followed in our schools.

We have a great course in Python available in English:
Course

Here are a few selected lessons that might be particularly helpful, though we recommend going through the entire course:
lecture1
lecture2

Since we specialize in courses in the Serbian language, we hope you understand that it is not easy for us to curate more English-language materials at this time.

Best regards,
Nemanja