About this course
Python, the programming language, is considered a pioneer of the coding world. Unlike programming languages like R, it supports structured programming, functional programming patterns, and object-oriented programming. Python is an all-in-one, unified language capable of handling running embedded systems, data mining, and website construction. The reason for growing success of Python is the availability of data science libraries.
In this class, we will learn the basic commands and syntaxes in Python, such as list, dictionary, class, function. The goal is that student manage to understand all the fundamentals in Python so they can utilize this in a more advanced classes using Python.
This class can be considered as a prequel to the Training Camp I class.
Length 3 Weeks
Effort 3-5 hours per lesson
Level Introductory
Language English
Course Type Self-paced during lecture hours
What you'll learn
Learning variables and list in Python
Learning for loop and if statement
Constructing dictionaries and user inputs with while loop
Using function and classes
File reading and exceptions
Prerequisite
There are no prerequisites for this course, except knowledge of high-school mathematics and editing text. The course can be taken by any learner who wants to learn the basic of programming.
Syllabus
Lesson 1: Variables & Simple Data Types
This lesson introduces the basic syntaxes and data types in Python, and also the most-used list object of Python.
Lesson 2: for Loop & if Statement
This lesson introduces the main looping tool used in Python: for loop. Also, the conditional method in Python using if is covered. In the end of the lesson, the implementation of both looping and conditional will also be covered.
Lesson 3: Dictionaries & while Loops
This lesson introduces the other main container-type object: dictionary. User input and the other type of loop, that is the while loop, will also be explored.
Lesson 4: Functions & Classes
This lesson introduces the use of functions in Python. These functions will also be further explored inside the class object in Python. The lesson is closed by introduction of some useful built-in modules: random and math.
Lesson 5: Files & Regular Expression
This lesson introduces the learner to simple file management in Python. Then, the lesson proceeds with the introduction to regular expression, including using anchor and quantifier in regex.
Evaluation Method
The grading for this class will be using point system.
Five in-class exercises: each session gives maximum 4 points (total of 20). These are to be submitted during the class.
Five assignments: each assignment consists of maximum 16 points (total of 80). Submission is on each respective Assignment page.
Penalties (point reduction) will be given for late submission, unsupportive behavior, etc.
Assignment & Exercise Submission
Assignments can be submitted through the provided form in assignment page. For communication and exercise submission, the embedded chatroom in each lesson or Chat main page can be used.
Before sharing the link for the code, make sure the top-right corner of your code shows "Draft Saved" before you share the link. In general, the code should automatically saved. (Try to make some small changes in the code to generate another link.)
Adjust your window size so both the output and input windows are shown side-by-side, as the following picture:
Meet Your Instructors
Assistant Professor
M. Samy Baladram
Graduate School of Information Science
email: samy.baladram[at]tohoku.ac.jp
Teaching Assistant
Mike Zielewski
Takizawa Lab
Graduate School of Information Science
email: zielewski.michael.ryan.q5[at]dc.tohoku.ac.jp
Teaching Assistant
Pratik Sahu
Hashimoto-Kagami Lab
Graduate School of Information Science
email: sahu.pratik.r8[at]dc.tohoku.ac.jp