1
2
3
4
5
6
7
8
9
10
just repeat:

try it the slow way to understand what you are trying to achieve
do some learning(remember to look up documentation)

break up the problem into steps
choose data_types、control_flows、...
write down your pseudo_code

write code & test code

思考一下:why you should choose data_types ?

Different types have different properties, and an object’s type defines which operators and functions will work on that object and how they work

so when you’re designing on computer program, you need to choose types for your data based on how you’re going to use them

For example, if you want to use a number as a part of a sentence in Python, it’ll be easiest if that number is a string, because there exists specially designed operators and functions for working with these data.


learn from: https://learn.udacity.com/courses/ud1110