- Write a loop to ask the name and age from a user and print "Your name is ___ and your age is ___ years old"
- This should be infinite loop
- Define the following array
"pizza"}
- Append to it the following item: "hamburger"
- Append to it the following item: "salad"
- Iterate over the list and print for each item
Food: <Food name>
. Make sure to replace<Food name>
with item from the array
- Define the following fixed array of 3 items:
{square, circle, triangle}
- Iterate over it and print for each item the following:
This is <ITEM> and its index in the array is <INDEX>
- Iterate over it and print for each item the following:
Click here to view the solution