Question: # Get a number input from the user. # Using the below list mylist, get the item requested by the user # multiply it by

# Get a number input from the user.
# Using the below list "mylist", get the item requested by the user
# multiply it by 10 and print the result
# For example, if the user inputs 3, your item will be 89, print 890
# If the number is outside the list range, print "error".
myList =[23,45,67,89,12,34,56,78,90]
# Write your code here:
# Write your code here:
index = eval (input ("Enter a number: "))
if index len(myList):
print ("Error!!!!!!!!!!!!!!!!")
else:
print (myList [index]*10)
 # Get a number input from the user. # Using the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!