February 13 Kyoto University has released the Python lecture materials ** for free **. Relation: Lecture Material Repository Introduction article-Qiita Introduction article-CodeZine
The content is quite substantial. (Not perfect ...) Because of COVID-19, studying at home will be the key to the future, so let's make effective use of it. I myself use the basics of Python indiscriminately, so I would like to take this opportunity to fully understand it.
By the way, it is divided into ** lecture materials
** and column edition
, and this article deals only with lecture materials.
If you can use Python somehow, please read Column Edition
. It's interesting.
I wrote the column as a bonus, so please take a look if you are too free to die. Kyoto University Python Lecture Material: Introduction of Columns
In this article, I would like to rank from the lecture materials of Kyoto University based on my personal opinion. I am also a beginner, so please comment if you have any opinions.
For those who want to learn about the outline and contents of Python. (For statement if statement, etc.)
・ I built a Python environment, but what should I do? ・ I've never done programming! !! ・ I've been studying a lot, so I want to review the basics!
The peripheral software part is omitted.
Basically rank by unit (chapter)
Example: ** 1. Computer and programming (☆☆☆) **
As a meaning of rank
Rank | meaning |
---|---|
☆☆☆ | Absolute parts such as essential knowledge, frequent contents, basics of basics, etc. |
☆☆ | Wider code, useful if you know. Knowledge part |
☆ | The part that you don't need to know |
** This lecture material itself is "basic", so if you can read it all, you should read it. If you want to rank among them, please feel like. ** **
About purpose and notation. If it's troublesome, you don't have to read it. ** 0.5 Be careful of copying ** Let's just take a look. It is a note that there is a risk that it will not move if it is a copy. Only 3 lines.
This is a chapter on prerequisite knowledge. If you know it, it will be easier to understand. Read it if you can.
chapter | title | Rank | Overview |
---|---|---|---|
1.1 | Purpose of this chapter | ☆ | The contents of the chapter are itemized. If you want to know the structure of the material, please take a look. |
1.2 | Computers and programs | ☆ | History |
1.3 | How the computer works | ☆ | It's a theory. You don't have to |
1.4 | Programming language | ☆☆ | If you're new to Python, read on. |
1.5 | Programming language Python | ☆☆ | Basic knowledge of Python. Let's read it. |
1.6 | Various applications | ☆☆ | This is the application destination of Python. There may be discoveries. |
1.7 | How to learn programming | ☆☆☆ | A sensible thing about "programming learning". I recommend you to read it. |
1.8 | The basic concept of constructing a program | ☆☆ | It may be smooth if you know the structure of the program. |
1.9 | Where to make the program | ☆☆☆ | Even if you say programming, you don't write it all by yourself. |
You don't have to read it. You should google.
Knowledge of variables is also essential for understanding the flow of the program. Make sure you don't stumble in strange places.
chapter | title | Rank | Overview |
---|---|---|---|
3.1 | Learning goals of this chapter | ☆☆ | Let's take a look. |
3.2 | Program execution flow and information flow | ☆☆ | If you are new to the program, read it. |
3.3 | Variable name | ☆☆☆ | The basis for variables. |
3.4 | Variable assignment and value evaluation | ☆☆☆ | Same as above |
3.5 | Assignment operator | ☆☆ | The operation can be omitted. |
3.6 | Data types that can be used in Python | ☆☆☆ | Knowledge of data types is essential. |
3.7 | A more correct view of Python variables | ☆☆ | It's short so let's read it. |
3.8 | Example: Find the square root | ☆☆☆ | It is important to move your hands anyway. |
3.9 | Easy-to-read expression notation | ☆ | You don't have to look. |
The foundation of the foundation. Be sure to check it because it is a prerequisite knowledge of the program.
chapter | title | Rank | Overview |
---|---|---|---|
4.1 | Learning goals of this chapter | ☆☆ | Suddenly a lot of terms. Let's take a look. |
4.2 | for statement and range()Repeat a certain number of times using a function | ☆☆☆ | Foundation of foundation |
4.3 | How to write a for statement | ☆☆☆ | Same as above |
4.4 | Block in python | ☆☆☆ | Mandatory |
4.5 | Controlling processing within a for statement | ☆☆☆ | Basics of control |
4.6 | range()function | ☆☆☆ | It's the foundation. Set with for statement. |
4.7 | Nesting for statements | ☆☆ | A little difficult foundation. OK even after getting used to it |
4.8 | Repeat by while statement | ☆☆ | for+Like if. I want to know the existence |
4.9 | Branch by if statement | ☆☆☆ | Foundation of foundation. |
4.10 | How to write a conditional expression | ☆☆☆ | It's a little complicated, but it's the basics. |
4.11 | Nesting if statements | ☆☆ | I think the compound notation is better. |
4.12 | Input from the terminal | ☆☆☆ | It's the foundation. |
4.13 | Dealing with errors | ☆☆ | It's the basics, but you can skip it at worst. |
4.14 | Mathematical functions in Python | ☆☆ | This is a basic function. You can check it later |
4.15 | Format specification when displaying numerical values | ☆☆ | It will be easier to see if you know |
4.16 | Power test | ☆ | It doesn't have to be the problem here. |
You can write the same process without using functions, but it is essential for easy-to-read and easy-to-understand coding. I think it's better to structure it little by little from simple usage.
chapter | title | Rank | Overview |
---|---|---|---|
5.1 | Learning goals of this chapter | ☆ | Let's read it for the time being. |
5.2 | From the example in the previous chapter | ☆☆ | A simple example of a function. |
5.3 | Function square_root()To implement | ☆☆ | ↑ This is the actual code. |
5.4 | Function definition format | ☆☆☆ | The syntax of the function. As you can see, it's a minimum function. |
5.5 | Formal and actual arguments | ☆☆☆ | A description of the variables used in the function. Let's make it usable |
5.6 | Handling of variables in functions | ☆☆ | It gets a little complicated. You can reduce the arguments. |
5.7 | Function usage pattern | ☆☆☆ | How to use the function. 5 as needed.See 6 |
5.8 | Calling a function and passing a function object | ☆☆ | I do well |
5.9 | Default argument values and keyword arguments | ☆☆☆ | Required |
If you take a quick look and find it interesting, please touch it. You don't have to do it separately.
If you are interested in GUI, please touch it. You don't have to be Tkinter, and you only have to decide what you want to do.
This is an upgraded version of the function. If you can't catch up with your understanding, you can skip it for the time being. Let's check when we can handle functions.
chapter | title | Rank | Overview |
---|---|---|---|
9.1 | Learning goals of this chapter | ☆ | |
9.2 | Object-oriented programming | ☆☆ | Let's grab the image. |
9.3 | How to write a class in Python | ☆☆☆ | It is necessary to read even if you cannot write it. |
9.4 | Class variables and access restrictions | ☆☆☆ | Same as above. |
9.5 | Inheritance | ☆ | You can skip it. |
9.6 | Design a class starting from an instance | ☆☆ | It's short so let's read it. |
Required. I thought it should be placed next to the variable.
chapter | title | Rank | Overview |
---|---|---|---|
10.1 | Learning goals of this chapter | ☆ | Let's read it for the time being. |
10.2 | Learning with Python Shell | ☆☆ | Read this if you want to run it on the command line. |
10.3 | What is a list? | ☆☆☆ | Required. I think it's more important than class. |
10.4 | List generation | ☆☆☆ | Required. |
10.5 | Access to list elements | ☆☆☆ | Required. |
10.6 | For statement that manipulates the list | ☆☆☆ | I often use it. |
10.7 | Negative subscripts and slices | ☆☆☆ | I often use it. |
10.8 | Add to list, join | ☆☆☆ | I often use it. |
10.9 | List of lists | ☆☆☆ | It's a little complicated, but it's essential. |
10.10 | Comprehension notation | ☆☆ | The visibility and processing speed are improved. |
10.11 | List assignment and duplication | ☆☆ | It's a little confusing, but let's remember. |
10.12 | Immutable and mutable | ☆☆ | Same as above. I suddenly stumble. |
10.13 | Shallow copy, deep copy | ☆☆ | It's complicated, but it's important. |
Required. There are many ways to do this, so we recommend that you check it out.
chapter | title | Rank | Overview |
---|---|---|---|
11.1 | Learning goals of this chapter | ☆ | |
11.2 | To use the data permanently | ☆☆ | Preface. Let's read it. |
11.3 | About files | ☆☆☆ | Required. |
11.4 | Let's move it first | ☆☆☆ | It is important to write it. |
11.5 | Reading and writing files in Python | ☆☆☆ | It is a detailed explanation. |
11.6 | Example 1 Wave approximation | ☆ | If you also touch Tkinter, let's do it. |
11.7 | Example 2 | ☆ | Same as above. |
Algorithm design practice is required. However, the volume is a little big. .. .. It's a good idea to look for a simple algorithm problem on the net. Example: "Pyramid output by *", "Various sorting algorithms"
chapter | title | Rank | Overview |
---|---|---|---|
12.1 | Learning goals of this chapter | ☆ | |
12.2 | To develop a program | ☆☆☆ | An important story for program development. |
12.3 | Design procedure-Things to do before using a computer | ☆☆☆ | It's basic. |
12.4 | Program design using tic-tac-toe as an example | ☆☆ | It's volumey. You can just read it. |
12.5 | Program implementation | ☆☆ | Same as above. Try moving it with a copy. |
12.6 | Power test | ☆ | If you are free, let's do it. |
12.7 | Some topics related to program development | ☆☆ | Let's read it as knowledge. |
These are also mandatory. One of the reasons Python is so popular is its rich library. The most famous ones are introduced here, but if you look it up, there are many. Example: There are more people who are seaborn than Matplotlib.
chapter | title | Rank | Overview |
---|---|---|---|
13.1 | Learning goals of this chapter | ☆☆☆ | Introducing the frequent library. |
13.2 | Alias at the time of import | ☆☆☆ | Required. |
13.3 | NumPy | ☆☆☆ | Required. |
13.4 | Matplotlib | ☆☆☆ | Whether you can handle graphs is a big difference. |
13.5 | pandas | ☆☆☆ | Use from Python default. Required. |
13.6 | Task | ☆☆ | Let's actually write it. |
References | ☆☆ | The commentary blog is good, but I recommend reading the official reference. |
This is the postscript. I haven't written it in detail, so you should check it yourself.
chapter | title | Rank | Overview |
---|---|---|---|
14.1 | Learning goals of this chapter | ☆ | |
14.2 | Looking back | ☆ | |
14.3 | Python usage environment | ☆☆ | You should look it up separately. |
14.4 | Addition of modules, etc. | ☆ | Same as above. |
14.5 | Topics not introduced in this book | ☆☆ | It will be useful for future policies. |
14.6 | Gratitude and gratitude | ☆ | Afterword. I'm writing good things. |
This chapter is like Tips
. There are more Tips
in ** Column **. Let's take a look.
chapter | title | Rank | Overview |
---|---|---|---|
15.1 | Python handy notes | ☆☆ | A collection of HELPs that can be used within Python. |
15.2 | Pay attention to the file name | ☆☆ | It is a note. |
15.3 | IDLE memo-Python Shell | ☆☆☆ | This is a general-purpose command. Convenient. |
15.4 | IDLE memo-editor | ☆☆☆ | Same as above. |
Thank you for watching until the end. I think it's a carefully crafted teaching material about the basics of Python. Thank you to Kyoto University.
However, since it is only basic, it is necessary to learn more according to what you want to do. Algorithm design is especially important, so it is recommended that you look at the human code and challenge the past questions of the competition professionals.
This teaching material has a column edition
. There is a wealth of content that is ** important but omitted in the lecture **.
I highly recommend reading it.
** This article is over. If you have any questions, please leave a comment and we will respond. Thank you very much. ** **
Recommended Posts