Python 程式設計 Computer Programming in Python

Preview:

Citation preview

Python 程式設計Computer Programming in Python

Lecture 2

Your First Python Program

林澤佑

資料科學學位學程

Tse-Yu Lin

Data Science Degree Program

Course Objective

• Introduce Python IDEs and Code Editors

• Write your first Python program

• Plot beautiful figures using Python

Write Python

• Where to Write• Python IDE (Integrated Development Environment ):Spyder, PyCharm, …

• Runtime Environment : Jupyter Notebook、JupyterLab

• Online Runtime environment: Google Colaboratory

• How to write?• Write with passion

• Prerequisite?• Passion and love

Which One is the Best?

Python IDLE

PyCharm

Jupyter Notebook

JupyterLab

Google Colaboratory

Python IDLE

PyCharm

Jupyter NotebookJupyterLab

Google ColaboratoryVisual Studio Code

• The the world's most popular Python distribution platform with over 25 million users worldwide.

• The best choice for Python beginners

• Easy to search, install and update your package

• Including the following environments:• Jupyter Notebook/Lab• Spyder• Orange• QtConsole• Glueviz• Rstudio• Visual Studio Code

Jupyter NotebookJupyterLab

Python Packages for Data Science and AI

Usage of Colab

Start Your First Colab Notebook

• Search “Colab” using Google

Create (1/2)

• When you enter Colab Website, you can create a new Colab notebook by clicking New notebook (circled in red)

Create (2/2)

• You can also create a new Colab notebook from any Colab notebook by clicking File > New notebook

Storage (1/2)

• You can save a Colab notebook to your Google Drive (under the folder Colab Notebooks) by clicking File > Save a copy in Drive

Storage (2/2)

• You can download a Colab notebook by clicking File > Download > Download .ipynb

Open (1/3)

• Open in Google Drive: double clicking or open with Google Colaboratory

Open (2/3)

• Open in Colab notebook: File > Open notebook > Google Drive

Open (3/3)

• Open in Colab notebook: File > Open notebook > Upload

How to Submit Your Assignment

• Upload your Colab notebook by dragging and dropping to the Drive folder provided in each assignment.

How to Submit Your Assignment

• Upload your Colab notebook by dragging and dropping to the Drive folder provided in each assignment.

Recommended