๐—ฃ๐˜†๐˜๐—ต๐—ผ๐—ป ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด: ๐—™๐—ฟ๐—ผ๐—บ ๐—ช๐—ผ๐—ฟ๐—ธ๐—ถ๐—ป๐—ด ๐—–๐—ผ๐—ฑ๐—ฒ ๐˜๐—ผ ๐—ฆ๐—บ๐—ฎ๐—ฟ๐˜ ๐—Ÿ๐—ผ๐—ด๐—ถ๐—ฐ

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