I want to introduce programming to children's shoes that are not programmed and outline them. Can you see if they are suitable?
Introduction to programming in the first Programming Course
- What is programming: source code becomesProgram
- Why Python: easy to get started
- Install Python: 2.7
First Program
- Print "Hello word"
- Input: raw_input
- Output: Print
- Name = raw_input ("What's your name? ")
- Print "hello", name
Second Program
- Arithmetic Operation (100 + 40)/32-(4* 2)
Data Type
- Variable
- Number: 1, 2.3,-18
- String: "float cloud", "God"
- List: [1, 2, 4]
Third Program
- Randomly select a role from Three Kingdoms
- There is a list: ["Guan Yu", "Zhang Fei", "Zhao Yun", "Lu Bu"]
- Random
Programming Elements
- If: logical judgment
- Function: abstract a function.
- Module: organizes functions.
- Objects: People with arm and legs can walk and eat
Fourth Program
- Greet you according to the current time
- Get current time
- If the current time is 0-12, Good moning is output.
- If the current time is 12-18, the output is good afternoon.
- If the current time is, the output is good evening.
Learn to use networks to solve problems
- Search for a wall first: goagent
- Google preferred
- Blog Bo Q, csdn Forum: how to ask questions
- Ask questions via email. Try not to use IM
Job
- Select one
- How many meters are input per second and how many kilometers are output per hour
- How long does it take for you to calculate the height to the ground? On the moon?
- Enter a piece of text, and the number of outputs is case-insensitive.
- Enter a month and the number of days of the month, regardless of the leap year.