Professional Documents
Culture Documents
Structures
1. Use help function to find help on the range function
a. Create a list "one_to_ten" with values from 1 to 10 (use the
"range()" function).
b. Replace the first item in the list with the value 10.
c. Append the number 11 to the list.
d. Add another list ([12, 13, 14]) to the list using an operator
method.
Example output:
TRY IT YOURSELF –
4. Use the while loop and get the following patterns in the output: