18
Python 程式設計 Computer Programming in Python Lecture 2 Your First Python Program 林澤佑 資料科學學位學程 Tse-Yu Lin Data Science Degree Program

Python 程式設計 Computer Programming in Python

  • Upload
    others

  • View
    43

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Python 程式設計 Computer Programming in Python

Python 程式設計Computer Programming in Python

Lecture 2

Your First Python Program

林澤佑

資料科學學位學程

Tse-Yu Lin

Data Science Degree Program

Page 2: Python 程式設計 Computer Programming in Python

Course Objective

• Introduce Python IDEs and Code Editors

• Write your first Python program

• Plot beautiful figures using Python

Page 3: Python 程式設計 Computer Programming in 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

Page 4: Python 程式設計 Computer Programming in Python

Which One is the Best?

Python IDLE

PyCharm

Jupyter Notebook

JupyterLab

Google Colaboratory

Page 5: Python 程式設計 Computer Programming in Python

Python IDLE

PyCharm

Jupyter NotebookJupyterLab

Google ColaboratoryVisual Studio Code

Page 6: Python 程式設計 Computer Programming in Python

• 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

Page 7: Python 程式設計 Computer Programming in Python

Python Packages for Data Science and AI

Page 8: Python 程式設計 Computer Programming in Python

Usage of Colab

Page 9: Python 程式設計 Computer Programming in Python

Start Your First Colab Notebook

• Search “Colab” using Google

Page 10: Python 程式設計 Computer Programming in Python

Create (1/2)

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

Page 11: Python 程式設計 Computer Programming in Python

Create (2/2)

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

Page 12: Python 程式設計 Computer Programming in Python

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

Page 13: Python 程式設計 Computer Programming in Python

Storage (2/2)

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

Page 14: Python 程式設計 Computer Programming in Python

Open (1/3)

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

Page 15: Python 程式設計 Computer Programming in Python

Open (2/3)

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

Page 16: Python 程式設計 Computer Programming in Python

Open (3/3)

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

Page 17: Python 程式設計 Computer Programming in Python

How to Submit Your Assignment

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

Page 18: Python 程式設計 Computer Programming in Python

How to Submit Your Assignment

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