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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept