a. define a list.
b.Ask the user to enter an integer n. You may assume the userwill enter a valid input.
c. Check how many times the integer occurs in L1.
i. Print the index of the first occurrence of ninL1 with asuitable message.
in python could someone help me figure out how to ask the userto input a number from the list, then print the first occurrence ofthe user input number.
a. define a list. b.Ask the user to enter an integer n. You may assume the user will enter a valid input. c. Check how m
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am