All learning paths Learn See Try Make Run Python on your own phone What this lesson is about Open a free notebook in a browser and run your first lines. No laptop and no installation.
Your cousin wants to try writing code but has only a phone and no money for software. What do you tell her?
A Tell her to save up for a cheap laptop first, because code needs a proper keyboard. B A free browser notebook needs no laptop and nothing installed. C Ask her to install a coding app on the phone before she writes anything.
Check my recall Why this matters Google's own course says its exercises run directly in your browser, with no setup needed. It also says the notebooks are tested most on desktop browsers, so expect rough edges on a phone.
You can open a free notebook in a browser, run three cells, and get your work back later.
Google's own course says its exercises run directly in your browser, with no setup needed. It also says the notebooks are tested most on desktop browsers, so expect rough edges on a phone.
A free browser notebook needs no laptop and nothing installed. A cell runs when you press it, so the order you press changes the result. Save your work, and never paste another person's details into a notebook. Task Your first notebook: print a line, add two numbers, and print the total.
Weak approach Pressing the third cell first, getting red text about an unknown name, and blaming the phone. The first cell, which sets that name, was never pressed.
Stronger approach Running the cells from the top, saving the notebook to your account, and reopening it the next day.
Why the stronger approach works Nothing was wrong with the code. The order the cells were run in was the whole problem.
Try a changed situation A shared spreadsheet at a shop has formulas in it, and two people filled rows in different order last evening. What do you suspect first?
Make something yourself Save a notebook with three cells that run without an error. Write what each cell does, and add a picture of the notebook running on your own phone.
Lesson 2 of 10 on Coding for evaluation work next Read an error message properly Part 1 ends in a work sample you can send
Read the primary or official source: Google machine learning crash course · programming exercise