Important unit seen from the Python lecture materials of Kyoto University

Introduction

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

What to do in this article

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.

Article target

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.

Ranking

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. ** **

0. Preface (☆)

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.

Below the main story

1. Computer and programming (☆☆)

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.

2. Python execution environment and usage (☆☆)

You don't have to read it. You should google.

3. Variables, operations, assignments (☆☆☆)

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.

4. Control structure (☆☆☆)

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.

5. Encapsulation of processing using functions (☆☆)

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

6. Play with Turtle (☆)

If you take a quick look and find it interesting, please touch it. You don't have to do it separately.

7. 8. GUI application made with Tkinter (1) (2) (☆☆)

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.

9. Class (☆☆)

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.

10. List (☆☆☆)

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.

11. File input / output

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.

12. Program development to learn by tic-tac-toe (☆☆)

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.

13. Academic use of Python (☆☆☆)

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.

14. Looking back and the future (☆☆)

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.

15. IDLE Python Convenience Book (☆☆)

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.

in conclusion

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

Important unit seen from the Python lecture materials of Kyoto University
Kyoto University Python Lecture Material: Introduction of Columns
Existence from the viewpoint of Python
Learning notes from the beginning of Python 1
Learning notes from the beginning of Python 2
Get the contents of git diff from python
2016 The University of Tokyo Mathematics Solved with Python
The transition of baseball as seen from the data
Learn Nim with Python (from the beginning of the year).
[Python] Get the text of the law from the e-GOV Law API
Study from the beginning of Python Hour1: Hello World
the zen of Python
Get the return code of the Python script from bat
Python points from the perspective of a C programmer
Kyoto University Python programming practice materials released for free
Study from the beginning of Python Hour8: Using packages
A collection of important AI research themes as seen from a review of the Google AI Blog
Different from the import type of python. from A import B meaning
What beginners learned from the basics of variables in python
Towards the retirement of Python2
About the ease of Python
About the features of Python
The Power of Pandas: Python
[Python] Try to graph from the image of Ring Fit [OCR]
[Python] Get the update date of a news article from HTML
From the introduction of JUMAN ++ to morphological analysis of Japanese with Python
List of disaster dispatches from the Sapporo City Fire Department [Python]
The story of Python and the story of NaN
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
pyenv-change the python version of virtualenv
Change the Python version of Homebrew
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
Use the Flickr API from Python
About the basics list of Python basics
Learn the basics of Python ① Beginners
The story of making a university 100 yen breakfast LINE bot with Python
Comparing R, Python, SAS, SPSS from the perspective of European data scientists
Find out the name of the method that called it from the method that is python
From a book that makes the programmer's way of thinking interesting (Python)