<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 This was our first Python command.
Basic Python Explorations
There are some minor differences between Python2 and Python3. Let us consider an example
Step1:  Basic Types
We now look at the different types of objects that Python offers
Step2:  Let us now turn to containers
Step3:  Lists are mutable objects, i.e. they can be changed.
Step4:  What is an example of an immutable object?
Step5:  Let us now turn to the distinction between independent copies and references to objects.
Step6:  Miscellaneous
Python Resources
Formatting
<ASSISTANT_TASK:>
Python Code:
# This is an inline comment: Python3
print('hello world')
# Python2
print 'hello world'
Explanation: This was our first Python command.
Basic Python Explorations
There are some minor differences between Python2 and Python3. Let us consider an example:
End of explanation
1 * 1.0
a = 3
type(a)
b = 3 > 5
print(b), type(b)
Explanation: Basic Types
We now look at the different types of objects that Python offers: floats, integers, booleans, lists, dictionaries, etc.
End of explanation
L = ['red', 'blue', 'green', 'black', 'white']
print(L)
L[1], L[3:], L[3:15]
Explanation: Let us now turn to containers: lists, dictionaries.
End of explanation
L[1] = 'yellow'
print(L)
Explanation: Lists are mutable objects, i.e. they can be changed.
End of explanation
T = ('red', 'black')
T[1] = 'yellow'
Explanation: What is an example of an immutable object?
End of explanation
print(L)
G = L
print(G,L)
# But now:
L[1] = 'blue'
print(G,L)
# Let us now create an independent copy:
G = L[:]
print('Independent: ', G, L)
L[1] = 'yellow'
print('Independent: ', G, L)
Explanation: Let us now turn to the distinction between independent copies and references to objects.
End of explanation
import urllib; from IPython.core.display import HTML
HTML(urllib.urlopen('http://bit.ly/1K5apRH').read())
Explanation: Miscellaneous
Python Resources
Formatting
End of explanation
<END_TASK>