This is the question:
Write a shell (text-based) program, called fruit_list.py, that creates the list of fruit names ('Apple', 'Orange', 'Banana', 'Water Melon', 'Pear') and asks the user to pick a number from 1 to 5. The program then prints the corresponding item on the list. Note the difference between the item number and the list index. See the example below.
Example:
Pick a number between 1 and 5: 3
You got a Banana.
PS C:\Users\ssiva\Desktop>
What I have tried:
x = ['Apple', 'Orange', 'Banana', 'Water Melon', 'Pear']
y = [1, 2, 3, 4, 5]
for y in x:
print x[y]
while y > 5:
print "Pick a number between 1 and 5:"
int = raw_input()