Sample Input 1:772345613345Sample Output 1:Not Working Doctors' IDs are:7 2 6 1 Sample Input 2:7723456-1Sample Output 2:Invalid Id Sample Input 3:5452-5Sample Output 3:Invalid IdSample Input 4:0Sample Output 4:Invalid list size Sample Input 5:3674433-5Sample Output 5:Invalid list sizeSample Input 6:315367820Sample Output 6:Invalid Id
Question
Sample Input 1:772345613345Sample Output 1:Not Working Doctors' IDs are:7 2 6 1 Sample Input 2:7723456-1Sample Output 2:Invalid Id Sample Input 3:5452-5Sample Output 3:Invalid IdSample Input 4:0Sample Output 4:Invalid list size Sample Input 5:3674433-5Sample Output 5:Invalid list sizeSample Input 6:315367820Sample Output 6:Invalid Id
Solution
I'm sorry, but you didn't provide a text to respond to. Could you please provide the text?
Similar Questions
Input and Output Format:The first line of input corresponds to n1, the size of the first list, and the next n1 lines correspond to the elements of the first list.The next line corresponds to n2, the size of the second list, and the next n2 lines correspond to the elements of the second listOutput is the id's of doctors who is not workingNote:1. Print "Invalid list size", if the size of the list entered is a negative number or zero and terminate the program2. Print "Invalid Id", if the id entered is any negative number or zero, and terminate the program.Sample Input 1:772345613345Sample Output 1:Not Working Doctors' IDs are:7 2 6 1
Proposed grade: 62.50 / 100Result DescriptionFailed testsTest 2: Check1 for positive set of inputs. and the order of output list (non-working doctors ids) should be in the order of all doctors id list (first input list). Also check the case and spacing in the input and output statements.Test 7: Doctor's id you have entered should not be negative. If it is negative, then display the message "Invalid Id". Also check the case and spacing in the input and output statements.Test 8: Doctor's id you have entered should not be zero. If it is zero, then display the message "Invalid Id". Also check the case and spacing in the input and output statements.Test 1: Check for a set of postive inputs and the order of output list (non-working doctors ids) should be in the order of all doctors id list (first input list). Also check the case and spacing in the input and output statements.Summary of tests *Note: All the test cases might not have same weightage+------------------------------+| 8 tests run/ 5 tests passed |+------------------------------+
Objective:To work with listsScenario:A doctor's survey results information is stored in 2 lists. The first list represents all doctors' IDs (working and non-working). The second list represents only the working doctors' IDs. Please find the doctor ids who are not working. Write a program in Python to perform the above task.Input and Output Format:The first line of input corresponds to n1, the size of the first list, and the next n1 lines correspond to the elements of the first list.The next line corresponds to n2, the size of the second list, and the next n2 lines correspond to the elements of the second listOutput is the id's of doctors who is not workingNote:1. Print "Invalid list size", if the size of the list entered is a negative number or zero and terminate the program2. Print "Invalid Id", if the id entered is any negative number or zero, and terminate the program.Sample Input 1:772345613345Sample Output 1:Not Working Doctors' IDs are:7 2 6 1 Sample Input 2:7723456-1Sample Output 2:Invalid Id Sample Input 3:5452-5Sample Output 3:Invalid IdSample Input 4:0Sample Output 4:Invalid list size Sample Input 5:3674433-5Sample Output 5:Invalid list sizeSample Input 6:315367820Sample Output 6:Invalid Id
What was the result of Test of Talent Aptitude Test including your Aspirant ID?It should be written in this format only(For Eg)C765750 Score 102/150
InputNeha123456A100100100100100100Expected outputNeha123456A100100100100100100PassYour Program OutputName: JohnTotal Marks: 265Result: FailName: JaneTotal Marks: 230Result: FailName: MikeTotal Marks: 215Result: Fail
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.