CN 101
Lecture 1
Introduction to Programming
Nutchanon Yongsatianchot (Nut)
อาจารย์ ดร.ณัฐชนน ยงเสถียรโชติ (อ. นัท)
ynutchan@engr.tu.ac.th
Any prior programming experiences?
Official Class Website and Materials
Same Curriculum
Same exams & grading rubric
Same for all.
First Half
Second Half
ครึ่งแรกสำคัญมาก!!
Practice, Practice, Practice!
“There is no magic.”
Exercise: Labs and Prep
Teaching Assistants (TA)
ธนิศร อภิรัตน์ไพบูลย์ (เติร์ด)
สกลรัตน์ สัตบรรย์
(กุ๊งกิ๊ง)
ณพล ธีระวัฒนวิศิษฎ์
(เฟิส)
Teaching Style
Class Objectives
Know how to program
Get a good grade
Previous Class Statistics: 2566-2
N=66, mean = 69.8
N=33, mean = 63.0
Previous Class Statistics: 2567-1
N=82, mean = 65.3
ขาดสอบหรือซิ่ว
Previous Class Statistics: 2567-2
1st year EE
1st year TEP/TEPE
N=68, mean = 73.9
N=50, mean = 66.2
34% is F or W
2% is F or W
Responsibility
40% on YOU
50% on ME
10% on other profs
Late Policy
AI Policy
Summary
Introduction to Python Programing
Why learn to program?
High-level Hardware
Understanding programming
Python - Words and Sentences
Using Python
Python Interactive Demo
Python Script Mode
Jupyter notebook and Google Colab
Google Colab Interface
Python is running if green check
Click here to run the code
The output will be shown below
Click the code block to add your code
Add comment
Google Colab from Github
Turning off AI in Google Colab
1.
2. Uncheck it
Google Colab Demo
The building blocks of programs
Input/Output/Process