𝗣𝘆𝘁𝗵𝗼𝗻 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴: 𝗙𝗿𝗼𝗺 𝗪𝗼𝗿𝗸𝗶𝗻𝗴 𝗖𝗼𝗱𝗲 𝘁𝗼 𝗦𝗺𝗮𝗿𝘁 𝗟𝗼𝗴𝗶𝗰

Stop writing code immediately. Plan your logic first. Draw a flowchart. Do manual math. Then write your Python code.

I solved two classic problems to test this process.

Problem 1: Sum of N numbers.

Problem 2: Sum of prime numbers.

My process followed four steps:

Do not worry about a perfect solution at first. Make it work first. Make it better next. This is how you learn to think like a programmer.

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