Question: Use Object - Oriented Programming Paradigm ( i . e . using Classes ) , create Python program that does the following: 1 . The

Use Object-Oriented Programming Paradigm (i.e. using Classes), create Python program that does the following:
1. The program asks the user for input N (positive integer) and reads it
2. Then the program asks the user to provide N numbers (one by one) and reads all of them (again, one by one)
3. In the end, the program asks the user for input X (integer) and outputs: "-1" if there were no such X among N read numbers, or the index (from 1 to N) of this X if the user inputted it before.
4. In a separate module, create the functionality outside of the main running code - i.e., create the module with the Class described in the item above

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 Programming Questions!