<commit_before>---
lecture_date: 2016-08-02 09:00:00.00-7:00
topic: "Picobot and Guttag Chapter 2"
desc: "Number representation, state machines, numeric types, operators"
week: "1"
---


# Morning (Diba)
Lecture Slides:
[Number representation](https://drive.google.com/file/d/0B__7284Jee0fMF9NTkU4OVlGZEE/view?usp=sharing)
[Picobot and state machines](https://drive.google.com/file/d/0B__7284Jee0fOWxvWHZ4dUFYelU/view?usp=sharing)
Picobot and introduction to [lab01](/lab/lab01/)



# Afternoon (Phill)

* A little bit on lists (needed for H03)
* A little bit on Cyberdojo (needed for H03)
* More on functions (needed for H03)

More detail on Python from Guttag Chapter 2

* numeric types: `int`, `float`
* the `bool` and `None` types
* operators, expressions, variables and assignment
* `if`/`else`
* The string data type (`str`)
* getting input from the keyboard with `raw_input`
* while loops


# Assignments

* Read Chapter 3 in Guttag before tomorrow's lecture
* Homework [h03](/hwk/h03)

<commit_msg>Update 0802.md<commit_after>---
lecture_date: 2016-08-02 09:00:00.00-7:00
topic: "Picobot and Guttag Chapter 2"
desc: "Number representation, state machines, numeric types, operators"
week: "1"
---


# Morning (Diba)
Lecture Slides:

[Number representation](https://drive.google.com/file/d/0B__7284Jee0fMF9NTkU4OVlGZEE/view?usp=sharing)

[Picobot and state machines](https://drive.google.com/file/d/0B__7284Jee0fOWxvWHZ4dUFYelU/view?usp=sharing)

Picobot and introduction to [lab01](/lab/lab01/)



# Afternoon (Phill)

* A little bit on lists (needed for H03)
* A little bit on Cyberdojo (needed for H03)
* More on functions (needed for H03)

More detail on Python from Guttag Chapter 2

* numeric types: `int`, `float`
* the `bool` and `None` types
* operators, expressions, variables and assignment
* `if`/`else`
* The string data type (`str`)
* getting input from the keyboard with `raw_input`
* while loops


# Assignments

* Read Chapter 3 in Guttag before tomorrow's lecture
* Homework [h03](/hwk/h03)


{'fraction_non_alphanumeric': 0.12152777777777778, 'fraction_numerical': 0.05357142857142857, 'mean_word_length': 4.932352941176471, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6308014', 'n_tokens_mistral': 821, 'n_tokens_neox': 714, 'n_words': 215}