Class 12 – Monday, September 20

Tabling

An optimist thinks — Elevator close button — Really does something


Look both ways


Agenda


Downloads


To do list


What is data?


What is information


What is a dataset


Web pages


Program word_of_the_day.py

???



Program secret_revealed.py

Enter id: ???

???



Program weathering_heights.py

<!DOCTYPE html> <html class="no-js"> ...

<div class="row row-odd row-forecast"><div class="col-sm-2 forecast-label"><b>This Afternoon</b></div> <div class="col-sm-10 forecast-text"> Partly sunny, with a high near 81. East wind 6 to 8 mph. </div>

</body> </html>

<!DOCTYPE html> <html class="no-js"> ...

</body> </html>

<div class="row row-odd row-forecast"><div class="col-sm-2 forecast-label"><b>Today</b></div> <div class="col-sm-10 forecast-text"> Showers and thunderstorms. Temperature falling to around 61 by 3pm. South wind around 15 mph becoming west northwest in the afternoon. Winds could gust as high as 25 mph. Chance of precipitation is 100%. New rainfall amounts between a half and three quarters of an inch possible. </div>

<!DOCTYPE html> <html class="no-js"> ...

<div class="row row-odd row-forecast"><div class="col-sm-2 forecast-label"><b>Today</b></div> <div class="col-sm-10 forecast-text">Sunny, with a high near 76. Southeast wind 3 to 7 mph. </div>

</body> </html>

Enter zipcode: 22903

22903 forecast: Partly sunny, with a high near 81. East wind 6 to 8 mph.

Enter zipcode: 55455

55455 forecast: Showers and thunderstorms. Temperature falling to around 61 by 3pm. South wind around 15 mph becoming west northwest in the afternoon. Winds could gust as high as 25 mph. Chance of precipitation is 100%. New rainfall amounts between three quarters and one inch possible.

Enter zipcode: 07452

07452 forecast: Sunny, with a high near 76. Southeast wind 3 to 7 mph.


Program going_rowing.py

table: [['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H', 'I'], ['J', 'K', 'L', 'M']]

the table has 4 rows

row ['A', 'B', 'C'] has 3 columns

row ['D', 'E', 'F'] has 3 columns

row ['G', 'H', 'I'] has 3 columns

row ['J', 'K', 'L', 'M'] has 4 columns

row 0 : ['A', 'B', 'C']

row 1 : ['D', 'E', 'F']

row 2 : ['G', 'H', 'I']

row 3 : ['J', 'K', 'L', 'M']



Program rc_printing.py

Number of rows and columns: 3 4

0 1 2 3

1 2 3 4

2 3 4 5

Number of rows and columns: 4 5

0 1 2 3 4

1 2 3 4 5

2 3 4 5 6

3 4 5 6 7



author: Dmarcus100; periodic table of elements Wikimedia Commons