Make a list of the first 10 cubes (that is, the cube of each integer from 1 through 10), and use a for loop to print out the value of each cube. code example
Example: Make a list of the first 10 cubes (that is, the cube of each integer from 1 through 10), and use a for loop to print out the value of each cube.
menu_items = (
'rockfish sandwich', 'halibut nuggets', 'smoked salmon chowder',
'salmon burger', 'crab cakes',
)
print("You can choose from the following menu items:")
for item in menu_items:
print("- " + item)
menu_items = (
'rockfish sandwich', 'halibut nuggets', 'smoked salmon chowder',
'black cod tips', 'king crab legs',
)
print("\nOur menu has been updated.")
print("You can now choose from the following items:")
for item in menu_items:
print("- " + item)