ch01
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
>>> n = 3 # integer number
|
||||
>>> address = "221b Baker Street, NW1 6XE, London" # Sherlock Holmes' address
|
||||
>>> employee = {
|
||||
... 'age': 45,
|
||||
... 'role': 'CTO',
|
||||
... 'SSN': 'AB1234567',
|
||||
... }
|
||||
>>> # let's print them
|
||||
>>> n
|
||||
3
|
||||
>>> address
|
||||
'221b Baker Street, NW1 6XE, London'
|
||||
>>> employee
|
||||
{'age': 45, 'role': 'CTO', 'SSN': 'AB1234567'}
|
||||
>>> other_name
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
NameError: name 'other_name' is not defined
|
||||
>>>
|
||||
Reference in New Issue
Block a user