You are on page 1of 1

Dear Attendees,

Thank you for your participation during our third lecture. The problem with python server on Edube platform
allowed us to use local python console.

Course update:

On each course day the pause is planned from 4:30 to 4:40 pm (Morocco time).

Additional information:

1. Explanation of literals, provided by Wikipedia:

https://en.wikipedia.org/wiki/Literal_(computer_programming) : literal is a notation for


representing a fixed value in source code

2. Update to 2.1.2.4: when you want to express binary value, prefix it with ‘0b’:

print(0b10110) - should return 22


print(0o26) - should return 22
print(0x16) - should return 22

3. How to understand None value? Response: It represents the absence of a value.


a. Examples:
i. Imagine a situation: how old I was in 17th century? It would be wrong to say: I was -377
years old. It’s better to say that my age was: None
ii. Imagine a system that gathers readings from sensors (i.e. temperature). There were no
readings from one of the sensors as it was missing or broken, so it is better to express
readings as None than any floating-point value that would be misleading.

Summary:

• today (2020.05.11) we finished on 2.1.2.12 (SECTION SUMMARY)


• on Wednesday (2020.05.13) we will start with 2.1.3.1 (Operators - data manipulation tools)

Homework:

Labs from the following slides:

• 2.1.1.7
• 2.1.1.19
• 2.1.1.20
• 2.1.2.11

You might also like