Searching a particular string and display employees details in python

Someone plz help in creating a python program where we get details from below text file and we get input of Id we need to search . If id is present in the text file then all details of employee is displayed

Sample text file:

name:ll id:99887 dept:MDIC designation:intern name:ln id:99877 dept:MDIC designation:manager name:lk id:87669 dept:FLY designation:manager End of sample text file

If input is 99887 Then it should display name:ll id:99887 dept:MDIC designation:intern My code

Plz provide entire code if mine is wrong



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)