𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝘁𝗼 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗲 𝗣𝘆𝘁𝗵𝗼𝗻 𝗖𝗼𝗱𝗲

Stop jumping into code. Think about the logic first. Use flowcharts. Do manual math. This process helps you write better software.

Example 1: Sum of numbers up to N.

Example 2: Sum of prime numbers.

My learning path:

Do not worry about the perfect answer first. Make it work. Then make it better. This is how you learn.

Source: https://dev.to/buddingdeveloper/python-for-beginners-how-i-solved-two-classic-problems-in-multiple-ways-with-flowcharts-30ie