"HSL25BH" 修訂間的差異
出自 青少年追求卓越
Limingyu2007 (對話 | 貢獻) 小 (→20250603) |
Limingyu2007 (對話 | 貢獻) 小 (→20250617) |
||
(未顯示同一使用者於中間所作的 9 次修訂) | |||
行 442: | 行 442: | ||
*** Unit 2, Lesson 2: Compound Boolean Expressions STEP 2-3 | *** Unit 2, Lesson 2: Compound Boolean Expressions STEP 2-3 | ||
*** Unit 2, Lesson 3: Chained conditionals STEP 1 | *** Unit 2, Lesson 3: Chained conditionals STEP 1 | ||
+ | ** 教師教導靖恩和佳恩使用 ChatGPT 找出 Python 的正確語法,例如:if a == 1 or 2 是錯誤語法;正確語法是:if a == 1 or a == 2 | ||
*作業指派: | *作業指派: | ||
** 請靖恩和佳恩<font size="3" color="#DDAA00"><b>複習</b></font> | ** 請靖恩和佳恩<font size="3" color="#DDAA00"><b>複習</b></font> | ||
行 447: | 行 448: | ||
*** Unit 2, Lesson 3: Chained conditionals STEP 1 | *** Unit 2, Lesson 3: Chained conditionals STEP 1 | ||
** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 2, Lesson 2-3: 教學影片和課文 | ** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 2, Lesson 2-3: 教學影片和課文 | ||
− | ** | + | ** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 2, Lesson 3: Chained conditionals STEP 2-3 |
*下次課程計畫: | *下次課程計畫: | ||
** 教師與靖恩和佳恩檢討作業指派執行情形。 | ** 教師與靖恩和佳恩檢討作業指派執行情形。 | ||
行 454: | 行 455: | ||
*** Unit 2, Lesson 5: Making recommendations | *** Unit 2, Lesson 5: Making recommendations | ||
*** Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals | *** Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals | ||
+ | ** 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet | ||
+ | ===20250610=== | ||
+ | *2025/06/10(二) 19:00-20:35 靖恩佳恩合班 | ||
+ | *今日課程進度: | ||
+ | ** 教師教導靖恩和佳恩瞭解如何準備學習 AI | ||
+ | <pre> | ||
+ | How to learn AI from scratch? | ||
+ | ChatGPT 說: | ||
+ | Learning AI from scratch can be a rewarding but complex journey. Here’s a structured roadmap to help you get started: | ||
+ | 1. Understand the Basics | ||
+ | Mathematics: Brush up on linear algebra, calculus, probability, and statistics. These are foundational for understanding machine learning algorithms. | ||
+ | Programming: Learn a programming language commonly used in AI, such as Python. Focus on libraries like NumPy, Pandas, and Matplotlib for data manipulation and visualization. | ||
+ | 2. Learn Fundamental Concepts | ||
+ | Introduction to AI: Understand what AI is, its history, and its subfields (machine learning, deep learning, natural language processing, etc.). | ||
+ | Machine Learning: Study the basics of machine learning, including supervised, unsupervised, and reinforcement learning. Key algorithms to learn include linear regression, logistic regression, decision trees, and clustering algorithms. | ||
+ | </pre> | ||
+ | ** 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 | ||
+ | *** 完成: Unit 2, Lesson 4: Nested conditionals | ||
+ | *** 開始:Unit 2, Lesson 5: Recommendation engine 研讀 Instructions: Recommendation engine | ||
+ | *作業指派: | ||
+ | ** 請靖恩和佳恩<font size="3" color="#DDAA00"><b>複習</b></font> | ||
+ | *** Unit 2, Lesson 4: Nested conditionals | ||
+ | *** Unit 2, Lesson 5: Recommendation engine 研讀 Instructions: Recommendation engine 第 1 段 | ||
+ | <pre> | ||
+ | The Internet is built on recommendation algorithms, from your social media feed to your music player app. Even Khan Academy has a recommendation engine for helping users find what to work on next! These systems gather data about a user’s attributes, behaviors, and preferences and use this data to match each user to content they think is most relevant to them. | ||
+ | </pre> | ||
+ | ** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 2, Lesson 4: Nested conditionals 教學影片和課文 | ||
+ | *下次課程計畫: | ||
+ | ** 教師與靖恩和佳恩檢討作業指派執行情形。 | ||
+ | ** 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度: | ||
+ | *** Unit 2, Lesson 5: Making recommendations | ||
+ | *** Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals | ||
+ | ** 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet | ||
+ | ===20250617=== | ||
+ | *2025/06/17(二) 19:00-20:30 靖恩佳恩請假 | ||
+ | * 今日課程進度: | ||
+ | ** 教師示範 Unit 1 Lesson 5 Challenge: Recommendation Engine | ||
+ | <pre> | ||
+ | """ | ||
+ | Recommends a Khan Academy course based on grade, subject, | ||
+ | and difficulty level preferences. | ||
+ | """ | ||
+ | |||
+ | # Course options to choose from for our recommendation. | ||
+ | fin_lit = "Financial Literacy" | ||
+ | pixar = "Pixar in a Box" | ||
+ | grammar = "Grammar" | ||
+ | # My recommendation | ||
+ | python = "Python" | ||
+ | prob = "Probability" | ||
+ | stat = "Statistics" | ||
+ | calc = "Calculus" | ||
+ | so_lit = "Social Media Literacy" | ||
+ | |||
+ | # Collect user attributes to inform our recommendation. | ||
+ | grade = int(input("What grade are you in? ")) | ||
+ | |||
+ | # Make a course recommendation based on the user's attributes. | ||
+ | rec = "" | ||
+ | if grade < 6: | ||
+ | # Course caters to younger learners. | ||
+ | rec = grammar | ||
+ | else: # grade >= 6 | ||
+ | favorite_subject = input("What is your favorite subject? ") | ||
+ | diff_level = input("beginner, intermediate, or advanced? ") | ||
+ | if grade < 10: | ||
+ | if favorite_subject == "computing" or favorite_subject == "art": | ||
+ | if diff_level == "beginner": | ||
+ | rec = pixar | ||
+ | else: | ||
+ | rec = python | ||
+ | elif favorite_subject == "math" or favorite_subject == "AI": | ||
+ | if diff_level == "beginner": | ||
+ | rec = prob | ||
+ | else: # intermediate or advanced | ||
+ | rec = stat | ||
+ | else: # favorite subjects beyond what prompted | ||
+ | # Most broadly relevant and approachable subject. | ||
+ | rec = fin_lit | ||
+ | else: # grade >= 10 | ||
+ | if favorite_subject == "computing" or favorite_subject == "art": | ||
+ | rec = python | ||
+ | elif favorite_subject == "math" or favorite_subject == "AI": | ||
+ | if diff_level == "beginner": | ||
+ | rec = stat | ||
+ | else: | ||
+ | rec = calc | ||
+ | else: # favorite subjects beyond what prompted | ||
+ | # Most broadly relevant and approachable subject. | ||
+ | rec = so_lit | ||
+ | |||
+ | print("We recommend the Khan Academy course: " + rec) | ||
+ | </pre> | ||
+ | * 作業指派: | ||
+ | ** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 1, Lesson 5: Making Recommendations 教學影片和課文 | ||
+ | *下次課程計畫: | ||
+ | ** 教師與靖恩和佳恩檢討作業指派執行情形。 | ||
+ | ** 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度: | ||
+ | *** Unit 3, Lesson 1: Import Modules | ||
+ | ** 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet | ||
+ | |||
+ | ===20250624=== | ||
+ | *2025/06/24(二) 19:00-20:30 教師請假 | ||
+ | *今日課程進度: | ||
+ | ** 教師示範 Unit 3 Lesson 1 Challenge: Avatar Generator | ||
+ | <pre> | ||
+ | import random | ||
+ | import avatar | ||
+ | |||
+ | bow = random.randint(1,3) | ||
+ | if bow == 1: | ||
+ | avatar.draw_bow() | ||
+ | avatar.draw_eyes("medium") | ||
+ | nose = random.randint(1,2) | ||
+ | if nose == 1: | ||
+ | avatar.draw_nose("triangle") | ||
+ | else: | ||
+ | avatar.draw_nose("button") | ||
+ | mouth = random.randint(1,4) | ||
+ | if mouth == 1 or mouth == 2: | ||
+ | avatar.draw_mouth("smile") | ||
+ | elif mouth == 3: | ||
+ | avatar.draw_mouth("teeth") | ||
+ | else: | ||
+ | avatar.draw_mouth("neutral") | ||
+ | if bow == 2: | ||
+ | avatar.draw_bow() | ||
+ | </pre> | ||
+ | * 作業指派: | ||
+ | ** 請靖恩和佳恩<font size="3" color="#DD00AA"><b>自修</b></font> Unit 3, Lesson 1: Module Import 教學影片和課文 | ||
+ | *下次課程計畫: | ||
+ | ** 教師與靖恩和佳恩檢討作業指派執行情形。 | ||
+ | ** 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度: | ||
+ | *** Unit 3, Lesson 2: While Loops | ||
** 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet | ** 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet |
於 2025年6月18日 (三) 09:22 的修訂
- 靖恩和佳恩 Python 程式設計課程,每週六 9:00-10:30。
- Pairing Khan Academy’s “Intro to Computer Science – Python” course with Thonny is a great way to combine the strengths of both platforms:
- Khan Academy: Teaches concepts interactively in a browser.
- Thonny: Lets students write, run, and debug code in a real Python environment.
- 複製一份 Python Practice Worksheet
目錄
課程記要
Python Practice Worksheet
Here’s a printable student worksheet template you can use to help your students pair Khan Academy's Python course with Thonny. It's designed to guide reflection, practice, and code experimentation. 📝 Python Practice Worksheet Name: _____________________ Date: _______________ Lesson Topic: ___________________________________________ Khan Academy Unit/Lesson URL: ___________________________ 1️⃣ What I Learned ✍ Write 2–3 things you learned from today’s Khan Academy lesson. 2️⃣ Sample Code from Khan Academy ✍ Copy the code you practiced during the lesson. # Paste your Khan Academy code here 3️⃣ My Modified Version in Thonny ✍ Edit, improve, or experiment with the code. # Paste your modified code from Thonny here 4️⃣ What Happened When I Ran the Code? ✍ Describe what the program did and if it worked as expected. 5️⃣ What I Changed or Tried ✍ List 1–2 things you changed or added in Thonny (e.g., new variable, condition, or loop). 6️⃣ My Questions or Confusions ✍ Write down anything you didn’t understand or want to ask the teacher. ✅ Teacher Feedback (optional) 🧑🏫 __________________________________________________________ 🧑🏫 __________________________________________________________ 🧑🏫 __________________________________________________________
How to Pair Khan Academy with Thonny
🔗 How to Pair Khan Academy with Thonny 🧭 Step 1: Use Khan Academy to learn concepts Direct your students to follow lessons and complete exercises on https://www.khanacademy.org/computing/intro-to-python-fundamentals Encourage them to watch the videos, try the interactive tasks, and read the explanations 💻 Step 2: Recreate or expand activities in Thonny Once they complete a coding task on Khan Academy: Open Thonny Create a new file (e.g., my_program.py) Type out the same code from the Khan activity—or rewrite it in their own words Run and test the program in Thonny Experiment: Modify the code to explore new behavior For example: Change variable values Add print statements Add comments (#) to explain logic 🔄 Step 3: Reinforce learning with projects After each unit (e.g., variables, loops), assign a mini project in Thonny using what they just learned Examples: After “functions” → build a calculator After “loops” → print a triangle pattern 🧠 Benefits of This Pairing Khan Academy Thonny Interactive, guided lessons Real-world Python environment Auto-checking and hints Full control and debugging tools Ideal for concept introduction Ideal for hands-on practice ✏️ Suggested Routine for Your Students Watch Khan video + do the exercise Rewrite and expand the code in Thonny Save and share their .py file Add a reflection (what they learned or struggled with)
A Python program using database
Show me an example of a Python program using database. ChatGPT 說: Certainly! Here's a simple Python example that uses a SQLite database to: Create a table Insert data Retrieve and display it SQLite is a built-in database that comes with Python, so no installation is needed. 🗃️ Example: Python + SQLite (Contacts Database) import sqlite3 # Connect to (or create) a database file conn = sqlite3.connect("contacts.db") # Create a cursor to execute SQL commands cursor = conn.cursor() # 1️⃣ Create a table cursor.execute(''' CREATE TABLE IF NOT EXISTS contacts ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, phone TEXT NOT NULL ) ''') # 2️⃣ Insert data cursor.execute("INSERT INTO contacts (name, phone) VALUES (?, ?)", ("Alice", "123-4567")) cursor.execute("INSERT INTO contacts (name, phone) VALUES (?, ?)", ("Bob", "987-6543")) # 3️⃣ Commit changes to the database conn.commit() # 4️⃣ Retrieve and display data cursor.execute("SELECT * FROM contacts") rows = cursor.fetchall() for row in rows: print(f"ID: {row[0]}, Name: {row[1]}, Phone: {row[2]}") # 5️⃣ Close the connection conn.close() 🧾 Sample Output ID: 1, Name: Alice, Phone: 123-4567 ID: 2, Name: Bob, Phone: 987-6543 ✅ Key Features Uses Python’s built-in sqlite3 module Simple and local: creates a file called contacts.db Good for beginners learning CRUD operations (Create, Read, Update, Delete)
When to learn Flask
When people start learning Python, do they need to know or use Flask? ChatGPT 說: No, people do not need to learn Flask when they first start learning Python. 🎯 Why Flask Isn't Needed at the Start ✅ When you're just starting, focus on: Python syntax and data types (e.g., strings, numbers, lists) Control structures (if, for, while) Functions and loops Basic input/output File handling Optional: using Thonny or a simple IDE Example beginner programs: name = input("What is your name? ") print(f"Hello, {name}!") 🧱 When to Learn Flask You should start learning Flask after you've mastered the basics of Python and are ready to: Build web apps or online tools Handle user forms and input over the internet Connect Python to a front-end like HTML or JavaScript Work with databases or create REST APIs 🧠 Learning Path Suggestion Stage Focus Beginner Core Python (variables, loops, logic) Intermediate Functions, modules, file I/O, error handling Advanced OOP, libraries (e.g., requests, pandas) Web Development Flask, databases, HTML/CSS, APIs ✅ Summary Learn Flask only after you're comfortable with Python basics. If you're teaching teens or beginners, Flask can wait until they're building projects that require web interaction. Would you like a visual learning roadmap for Python leading to Flask?
Suits for Poker
Generate the suit icons of Poker. ChatGPT 說: Here are the four suit icons used in Poker, in both text and Unicode emoji formats: ♠️ Spades Symbol: ♠ Unicode: U+2660 Emoji: ♠️ ♥️ Hearts Symbol: ♥ Unicode: U+2665 Emoji: ♥️ ♦️ Diamonds Symbol: ♦ Unicode: U+2666 Emoji: ♦️ ♣️ Clubs Symbol: ♣ Unicode: U+2663 Emoji: ♣️ Would you like these symbols in a graphic format or included in a printable poker card reference sheet? 你說: Which icons can I use in Python? ChatGPT 說: In Python, you can use the Unicode characters for poker suit icons directly in strings. Here’s how to use them effectively in your code: ♠️ Poker Suit Icons in Python ✅ Method 1: Direct Unicode Characters in Strings print("♠ Spades") print("♥ Hearts") print("♦ Diamonds") print("♣ Clubs") This works in: Most terminals (Windows 10+, macOS, Linux) Python IDLE, Thonny, VS Code, Jupyter Notebook ✅ Method 2: Unicode Escape Codes print("\u2660 Spades") # ♠ print("\u2665 Hearts") # ♥ print("\u2666 Diamonds") # ♦ print("\u2663 Clubs") # ♣ These Unicode escape codes (\u2660 etc.) are reliable and can be used if you're writing to files or want to avoid encoding issues. 🎨 Example: Colored Suits (Console) If you want to show colors in a terminal that supports ANSI escape codes: # Red hearts and diamonds, white spades and clubs print("\033[91m♥\033[0m Hearts") # Red print("\033[91m♦\033[0m Diamonds") # Red print("\033[97m♠\033[0m Spades") # White print("\033[97m♣\033[0m Clubs") # White 🔍 Output Example ♠ Spades ♥ Hearts ♦ Diamonds ♣ Clubs Would you like a function that maps a suit name to its icon (optionally in color)? 你說: How can I make them come in color? ChatGPT 說: To display colored suit icons in Python, you can use ANSI escape codes—a common way to add color to terminal output. 🎨 How to Show Colored Suit Icons in Python Console ✅ Example: Basic Colored Output Using ANSI Codes # ANSI escape codes for color RED = "\033[91m" BLACK = "\033[30m" RESET = "\033[0m" # Print suits with colors print(f"{RED}♥{RESET} Hearts") print(f"{RED}♦{RESET} Diamonds") print(f"{BLACK}♠{RESET} Spades") print(f"{BLACK}♣{RESET} Clubs") 🧪 Output (in most terminals) ♥ and ♦ will appear red ♠ and ♣ will appear black (or gray/white depending on your terminal theme) ✅ Optional: Use Colorama for Windows Compatibility If you're on Windows, especially older versions, you might need the colorama library for consistent color support. Step 1: Install colorama pip install colorama Step 2: Example Code with Colorama from colorama import init, Fore, Style init() print(Fore.RED + "♥ Diamonds" + Style.RESET_ALL) print(Fore.RED + "♦ Hearts" + Style.RESET_ALL) print(Fore.BLACK + "♠ Spades" + Style.RESET_ALL) print(Fore.BLACK + "♣ Clubs" + Style.RESET_ALL) 🧠 Pro Tip: Use a Function def colored_suit(suit): if suit == "hearts": return "\033[91m♥\033[0m" elif suit == "diamonds": return "\033[91m♦\033[0m" elif suit == "spades": return "\033[30m♠\033[0m" elif suit == "clubs": return "\033[30m♣\033[0m" print(colored_suit("hearts"), "10") print(colored_suit("spades"), "A") Would you like me to make a complete card-printing function for colored poker hands?
教師留言
20250510
- 今日課程進度: 09:00-10:30 (靖恩單獨上課。佳恩因校慶,請假一次)
- 教師引導靖恩下載 Python IDE: Thonny
- 教師指導靖恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成 Unit 1, Lesson 1, Challenge: The programming platform。
- 作業指派:
- 請靖恩複習 Unit 1, Lesson 1, Challenge: Platform tour
- 請靖恩自修 Unit 1, Lesson 1, Challenge: 教學影片和課文
- 下次課程計畫:
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- Unit 1, Lesson 2, Program execution, Challenge: Pair programming
- Unit 1, Lesson 3, Variable, Challenge: URL paths
- Unit 1, Lesson 4, Arithmetic expressions, Challenge: Coupon codes
- Unit 1, Lesson 5, Templating webpages, Project: Profile page
- Unit 1, Lesson 6, Reference docs
20250517
- 今日課程進度: 09:00-10:30 (靖恩單獨上課。佳恩因生病,請假一次)
- 教師指導靖恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- Unit 1, Lesson 2, Program execution, Challenge: Pair programming
- Unit 1, Lesson 3, Variable, Challenge: URL paths
- Unit 1, Lesson 4, Arithmetic expressions, Challenge: Coupon codes
- 教師指導靖恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- 作業指派:
- 請靖恩和佳恩複習
- Unit 1, Lesson 2, Program execution, Challenge: Pair programming
- Unit 1, Lesson 3, Variable, Challenge: URL paths
- Unit 1, Lesson 4, Arithmetic expressions, Challenge: Coupon codes
- 請靖恩和佳恩自修 Unit 1, Lesson 2-4: 教學影片和課文
- 請靖恩和佳恩複習
- 下次課程計畫:
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 1, Lesson 5, Templating webpages, Project: Profile page
- Unit 1, Lesson 6, Reference docs
- Unit 2, Lesson 1: Boolean conditions
- Unit 2, Lesson 2: Compound boolean expressions
- Unit 2, Lesson 3: Chained conditionals
- Unit 2, Lesson 4: Nested conditionals
- Unit 2, Lesson 5: Making recommendations
- Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
20250527
- 2025/05/27(二) 19:00-20:30 靖恩佳恩合班
- 今日課程進度:
- 教師指導靖恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- Unit 2, Lesson 1: Boolean conditions 全部
- Unit 2, Lesson 2: Compound Boolean Expressions STEP 1
- 教師指導靖恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- 作業指派:
- 請靖恩和佳恩複習
- Unit 2, Lesson 1: Boolean conditions 全部
- Unit 2, Lesson 2: Compound Boolean Expressions STEP 1
- 請靖恩和佳恩自修 Unit 2, Lesson 1-2: 教學影片和課文
- 請靖恩指導佳恩下載 Thonny - Python IDE
- 請靖恩和佳恩複習
- 下次課程計畫:
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 2, Lesson 2: Compound boolean expressions STEP 2, 3
- Unit 2, Lesson 3: Chained conditionals
- Unit 2, Lesson 4: Nested conditionals
- Unit 2, Lesson 5: Making recommendations
- Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals
- 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
20250603
- 2025/06/3(二) 19:00-20:45 靖恩佳恩合班
- 今日課程進度:
- 教師教導靖恩和佳恩瞭解如何準備學習 AI
How to learn AI from scratch? ChatGPT 說: Learning AI from scratch can be a rewarding but complex journey. Here’s a structured roadmap to help you get started: 1. Understand the Basics Mathematics: Brush up on linear algebra, calculus, probability, and statistics. These are foundational for understanding machine learning algorithms. Programming: Learn a programming language commonly used in AI, such as Python. Focus on libraries like NumPy, Pandas, and Matplotlib for data manipulation and visualization. 2. Learn Fundamental Concepts Introduction to AI: Understand what AI is, its history, and its subfields (machine learning, deep learning, natural language processing, etc.). Machine Learning: Study the basics of machine learning, including supervised, unsupervised, and reinforcement learning. Key algorithms to learn include linear regression, logistic regression, decision trees, and clustering algorithms.
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- Unit 2, Lesson 2: Compound Boolean Expressions STEP 2-3
- Unit 2, Lesson 3: Chained conditionals STEP 1
- 教師教導靖恩和佳恩使用 ChatGPT 找出 Python 的正確語法,例如:if a == 1 or 2 是錯誤語法;正確語法是:if a == 1 or a == 2
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 完成:
- 作業指派:
- 請靖恩和佳恩複習
- Unit 2, Lesson 2: Compound Boolean Expressions STEP 2-3
- Unit 2, Lesson 3: Chained conditionals STEP 1
- 請靖恩和佳恩自修 Unit 2, Lesson 2-3: 教學影片和課文
- 請靖恩和佳恩自修 Unit 2, Lesson 3: Chained conditionals STEP 2-3
- 請靖恩和佳恩複習
- 下次課程計畫:
- 教師與靖恩和佳恩檢討作業指派執行情形。
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 2, Lesson 4: Nested conditionals
- Unit 2, Lesson 5: Making recommendations
- Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals
- 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet
20250610
- 2025/06/10(二) 19:00-20:35 靖恩佳恩合班
- 今日課程進度:
- 教師教導靖恩和佳恩瞭解如何準備學習 AI
How to learn AI from scratch? ChatGPT 說: Learning AI from scratch can be a rewarding but complex journey. Here’s a structured roadmap to help you get started: 1. Understand the Basics Mathematics: Brush up on linear algebra, calculus, probability, and statistics. These are foundational for understanding machine learning algorithms. Programming: Learn a programming language commonly used in AI, such as Python. Focus on libraries like NumPy, Pandas, and Matplotlib for data manipulation and visualization. 2. Learn Fundamental Concepts Introduction to AI: Understand what AI is, its history, and its subfields (machine learning, deep learning, natural language processing, etc.). Machine Learning: Study the basics of machine learning, including supervised, unsupervised, and reinforcement learning. Key algorithms to learn include linear regression, logistic regression, decision trees, and clustering algorithms.
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。
- 完成: Unit 2, Lesson 4: Nested conditionals
- 開始:Unit 2, Lesson 5: Recommendation engine 研讀 Instructions: Recommendation engine
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。
- 作業指派:
- 請靖恩和佳恩複習
- Unit 2, Lesson 4: Nested conditionals
- Unit 2, Lesson 5: Recommendation engine 研讀 Instructions: Recommendation engine 第 1 段
- 請靖恩和佳恩複習
The Internet is built on recommendation algorithms, from your social media feed to your music player app. Even Khan Academy has a recommendation engine for helping users find what to work on next! These systems gather data about a user’s attributes, behaviors, and preferences and use this data to match each user to content they think is most relevant to them.
- 請靖恩和佳恩自修 Unit 2, Lesson 4: Nested conditionals 教學影片和課文
- 下次課程計畫:
- 教師與靖恩和佳恩檢討作業指派執行情形。
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 2, Lesson 5: Making recommendations
- Unit 2, Lesson 6: Reference docs: boolean expressions and conditionals
- 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet
20250617
- 2025/06/17(二) 19:00-20:30 靖恩佳恩請假
- 今日課程進度:
- 教師示範 Unit 1 Lesson 5 Challenge: Recommendation Engine
""" Recommends a Khan Academy course based on grade, subject, and difficulty level preferences. """ # Course options to choose from for our recommendation. fin_lit = "Financial Literacy" pixar = "Pixar in a Box" grammar = "Grammar" # My recommendation python = "Python" prob = "Probability" stat = "Statistics" calc = "Calculus" so_lit = "Social Media Literacy" # Collect user attributes to inform our recommendation. grade = int(input("What grade are you in? ")) # Make a course recommendation based on the user's attributes. rec = "" if grade < 6: # Course caters to younger learners. rec = grammar else: # grade >= 6 favorite_subject = input("What is your favorite subject? ") diff_level = input("beginner, intermediate, or advanced? ") if grade < 10: if favorite_subject == "computing" or favorite_subject == "art": if diff_level == "beginner": rec = pixar else: rec = python elif favorite_subject == "math" or favorite_subject == "AI": if diff_level == "beginner": rec = prob else: # intermediate or advanced rec = stat else: # favorite subjects beyond what prompted # Most broadly relevant and approachable subject. rec = fin_lit else: # grade >= 10 if favorite_subject == "computing" or favorite_subject == "art": rec = python elif favorite_subject == "math" or favorite_subject == "AI": if diff_level == "beginner": rec = stat else: rec = calc else: # favorite subjects beyond what prompted # Most broadly relevant and approachable subject. rec = so_lit print("We recommend the Khan Academy course: " + rec)
- 作業指派:
- 請靖恩和佳恩自修 Unit 1, Lesson 5: Making Recommendations 教學影片和課文
- 下次課程計畫:
- 教師與靖恩和佳恩檢討作業指派執行情形。
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 3, Lesson 1: Import Modules
- 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet
20250624
- 2025/06/24(二) 19:00-20:30 教師請假
- 今日課程進度:
- 教師示範 Unit 3 Lesson 1 Challenge: Avatar Generator
import random import avatar bow = random.randint(1,3) if bow == 1: avatar.draw_bow() avatar.draw_eyes("medium") nose = random.randint(1,2) if nose == 1: avatar.draw_nose("triangle") else: avatar.draw_nose("button") mouth = random.randint(1,4) if mouth == 1 or mouth == 2: avatar.draw_mouth("smile") elif mouth == 3: avatar.draw_mouth("teeth") else: avatar.draw_mouth("neutral") if bow == 2: avatar.draw_bow()
- 作業指派:
- 請靖恩和佳恩自修 Unit 3, Lesson 1: Module Import 教學影片和課文
- 下次課程計畫:
- 教師與靖恩和佳恩檢討作業指派執行情形。
- 教師指導靖恩和佳恩學習 Khan Academy 的 Introduction to Computer Science - Python。 進度:
- Unit 3, Lesson 2: While Loops
- 教師指導靖恩佳恩使用 Thonny - Python IDE,以及 Python Practice Worksheet