code programming

Python From a White Sheet

九位學生已經走過的確切序列,從空白檔案到詢問問題、檢查答案並拒絕不良輸入的程式。無需事前程式設計知識。無需數學。你會故意反覆破壞它。

  • trending_upBeginner
  • schedule5h 43m
  • menu_book12 堂課程
  • publicEnglish
  • bolt免費資源庫
Python From a White Sheet

課程簡介

大多數初學者課程會給你展示可以運作的程式碼,要求你欣賞它。這門課會埋下錯誤,然後讓它爆發。 你會在四個模組中寫一個程式。它從單一個 `print` 行開始,最後變成詢問問題、整理使用者輸入的任何內容、決定如何處理、進行算術運算、拒絕無意義內容並持續迴圈直到滿足為止的東西。你在途中遇到的每個失敗都是真實學生先遇到過的:尾隨空格、大寫字母、遺漏的冒號、你忘記儲存的結果、暗地裡是文字的數字。 最後你不會背誦過 Python。你將能夠找出為什麼某個東西無法運作,那才是實際的工作。

課程大綱 · 4 個單元

lock隨存取權限解鎖
  1. 01 初次接觸
    3 堂課程·1h 13m

    這裡沒有概念性的東西。你輸入、你執行、你讀取電腦說回來的內容。這個模組唯一訓練的技能是讀懂錯誤訊息,而不是看到錯誤就驚慌失措。

  2. 02 函數和決策
    3 堂課程·1h 27m

    這個模組引入了兩條規則,它們在你的 Python 人生中永遠適用。所有定義在上面,所有呼叫在下面。而縮排是想像中的括號——電腦透過計算空格來決定什麼屬於什麼。

  3. 03 清理使用者輸入的文字
    3 堂課程·1h 8m

    髒盤子要放進水槽才能放進碗櫃。使用者輸入的任何文字都不能進入你的邏輯,除非它已經經過 clean()。

  4. 04 數字、驗證和迴圈
    3 堂課程·1h 55m

    輸入垃圾,輸出垃圾。input() 總是交給你文字,即使它看起來像是數字,而相信它的程式就是會在某人面前當機的程式。

常見問題

我將在 Python From a White Sheet 中學到什麼?
九位學生已經走過的確切序列,從空白檔案到詢問問題、檢查答案並拒絕不良輸入的程式。無需事前程式設計知識。無需數學。你會故意反覆破壞它。
我需要事先具備經驗嗎?
不需要——Python From a White Sheet 從基礎開始,適合初學者。
Python From a White Sheet 需要多長時間?
Python From a White Sheet 包含 4 個單元和 12 堂課程。你可以按自己的進度學習。
我如何取得存取權限?
Python From a White Sheet 是免費資源庫的一部分——建立免費帳戶並將其加入你的收藏。

程式設計 中的更多內容

First Program — Scratch for ages 5–9
Beginner First Program — Scratch for ages 5–9 Nine Scratch blocks, three sessions of about twenty-five minutes, and one small program a child of five to nine builds themselves. Written for the parent sitting beside them: what to click, what they will get stuck on, what to say when it goes wrong, and when to keep your hands off the mouse.
Binary, Hex and Data Units
Beginner Binary, Hex and Data Units The topic that costs more marks than any other on the paper, taught by hand. Bits and bytes, binary and hex in all six directions, the 1000-versus-1024 trap, file sizes, transmission times, overflow, two's complement and character sets. Every module ends in a timed drill marked the way an examiner marks it.
AI Without the Hype
Beginner AI Without the Hype What the model is actually doing when it answers you, why that produces something that looks like thinking, why it invents citations, and the cost mechanic almost nobody explains: a chat resends the entire conversation on every single turn. You will do the arithmetic yourself.
IGCSE and GCSE Computer Science — Theory That Actually Gets Marked
Intermediate IGCSE and GCSE Computer Science — Theory That Actually Gets Marked The theory half of the paper, taught so it survives the exam room. The memory hierarchy and what actually happens at boot. Compilers, interpreters and assemblers, including the answer that sounds right and scores nothing. Databases from a spreadsheet up to keys and normalisation. DNS and the full path between pressing Enter and seeing the page. Systems software, and the ethical and legal section that is the easiest ten marks on the paper.
Programming for the Exam — Python Answers That Score
Intermediate Programming for the Exam — Python Answers That Score The programming half of the paper, taught at exam pitch. Pseudocode translated both ways, because the mark scheme is written in a notation nobody practises. Trace tables done column by column, including the ones with a loop and a condition inside it. Linear and binary search, bubble and insertion sort, what each costs and the comparison questions boards love. Validation against verification, and the boundary test data everybody forgets. Procedures against functions, and a systematic method for finding your own error with four minutes left.
AI at Your Desk
Beginner AI at Your Desk You have an office job, you are losing hours a week, and you do not care how any of this works. Four tasks from your own week, each done twice and timed. A fifth you should not have handed over. You finish with real work done and a page of your own numbers you can show someone.