Exercise: Create Python List II
The code below expects a list called elements with specific characteristics. Create the list. The
print
statement should output True
# create list here...
# check for list characteristics
print(len(elements) == 3 and 'hi' in elements)
# expected output: True
Python
Setting up Python environment...
Output