SIC Python Course Material
SIC Python Course Material
Orientation
Orientation
‣ Python code can be written and interpreted similarly as human’s everyday language, so it is readable and easy to
learn by beginners. Students can design the flow of the program in human language and change it to the actual
Python code very easily.
‣ Especially the syntax of Python is very simple and intuitive to write and understand, which helps new programmers not
to waste time with confusing syntax.
Python syntax
Interpreted
Orientation
‣ Python is wanted not only in educational fields but also by many developers in professional workplaces. Big
companies, including Google, Intel, eBay, Netflix, Instagram, Dropbox, and Slack, utilize Python for developing and
maintaining their applications.
Orientation
‣ Python includes various libraries, such as pandas, NumPy, SciPy, Matplotlib, TensorFlow, and Keras, that can be
extensively used in different fields like web development, data analytics, and artificial intelligence.
Orientation
‣ The 4th industrial revolution focuses on task automation, improved communication, and self-monitoring of smart
machines. Especially, machine learning and deep learning have been growing rapidly as the flower of the 4th
industrial revolution.
‣ As mentioned in the last slide, Python supports multiple libraries that engage in machine learning and deep
learning of artificial intelligence. It has been developing along with the progress of the 4 th industrial revolution, and it
plays a key role in enhancing in their rapid growth.
‣ Python also has different types of Python framework, such as Django, Flask, and FastAPI. With the utilization of
those frameworks and libraries, Python can be used in both front-end and back-end programming. It allows full
stack development, which is preferred in many job positions in related industries.
Orientation
Orientation
Algorithm for
Data Analysis
Orientation
IoT Course 8 IoT Project in Mobius Platform Ch 7 Preparation for Data Analysis
(Pandas Basics)
Ch 1 Understand IoT C&P Course Ch 8 Practice of Data Analysis and
for the 4th Industrial Revolution Data Visualization
AI Course
Ch 2 Raspberry Pi Hardware and Ch 1 Python Basic
Electrical Electronics
Ch 1 Introduction to AI
Ch 2 The Flower of Python Basics –
Ch 3 Git and Version Control Sequence Data Type Handling
Ch 2 Basic Algorithm for AI Learning
Ch 3 Python Intensive –
Ch 4 Programming Raspberry Pi in
Function and Closure
Python Ch 3 Practice Processing Data Ch 4
Ch 7 Node.js for Internet Network Ch Ch 6 Algorithm –Graph and Others Learning Part 2 Ch 7 Machine
Learning Part 3 Ch 8 Deep Learning Part 1 Ch 9 Deep Learning Part 2
Syntax
Annotation Sequential Structure
Naming
Conventions
Expressions
Error Runtime Error
UNIT 01
1.1. 47% of jobs will disappear in the next 20 years due to tech innovation.
UNIT 01
1.2. The 5Cs of 21st Century Skills
Computational Thinking
UNIT 01
UNIT 01
UNIT 01
UNIT 01
※ To view the
video clip above, move your mouse onto video screen to appear the play button.
UNIT 01
Start
Start [4] Print age
[2] Print preface of the resume [3] Print name [5] Print job
Print age
End
UNIT 01
Sequence is important in everyday life put toothpaste on How could the changed order affect the result?rinse toothbrush
toothbrush
put toothpaste on toothbrush
UNIT 01
2.1. Using the Glossary
UNIT 01
352 timesleep(5)
10 + 20 ‘Hello World!’ assemble assemble
print(‘Hello World!’)
timesleep(5) import time
import print(‘Hello World!’)
17.2
UNIT 01
2.3. Annotation
#define the variable as a radius
UNIT 01
2.3. Annotation
UNIT 01
Start
Move Right, Fill-In Square, Move Right, Move Down Fill-In
Here
Square, Move Left, Move Left, Fill-In Square Move Down, Move
Right, Fill-In Square, Move Right
Write the entire code and the expected output results in the note.
UNIT 01
Image 1
Move One Square Right Move One Square Left Move One
Square Up Move One Square Down Fill-In Square with Color
Write the entire code and the expected output results in the note.
UNIT 01
UNIT 01
1.1. Installing Anaconda
UNIT 01
1.1. Installing Anaconda
UNIT 01
data_science python_work
Computer
UNIT 01
UNIT 01
2.3. Anaconda Commands for Managing the Virtual Environment
Execution
Command
See list of virtual environments conda env list
Clone virtual environment conda create –clone [name of virtual environment to clone] –n [a new virtual environment]
Activate virtual environment conda activate [name of a virtual environment] Deactivate virtual environment conda deactivate
Remove virtual environment conda remove --name [name of a virtual environment] --all
UNIT 01
2.3. Anaconda Commands for Managing the Virtual Environment
UNIT 01
UNIT 01
UNIT 01
The value between the open quotation and close quotation marks are called a string.
TIP
▪ Unlike other languages, Python automatically breaks a line after outputting a string through print().
UNIT 01
When using an addition (+) operator, you cannot combine strings and numbers. When a string and a number are combined with an
addition operator (+), TypeError occurs.
UNIT 01
UNIT 01
Description
The first letter starts with a lowercase letter and uses _ (underscore) instead of spaces
between words. It’s called Snake Style because the underscores looks like snakes.
The first letter starts with a lowercase letter, and the start of the next word is
capitalized instead of spacing. It’s called the Camel style because the capital letters in
the middle looks like a camel's back.
Almost the same as the Camel style, but the first alphabet is also capitalized.
UNIT 01
5.3. Naming convention
UNIT 01
5.3. Naming convention
my_list Underscores can be used anywhere in the identifier, like the rest of the characters.
__code__ The name of a specific method can start with __(two underscores). for_loop A keyword can
UNIT 01
ver2.9 A special character other than the underscore cannot be used. num&co A special character
UNIT 01
UNIT 01
1. Runtime Error and Resolution
UNIT 01