Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timothy, Johnson 12345 Law £25000
- fob=open('c:/Users/username/Desktop/CE151 Python/ass2/info.txt','r')
- print("enter student file name: )")
- text_file = open("info.txt","r")
- for item in fob:
- for y in item:
- item.split(' ')
- print(item)
- break
- find = input('Input Details: ')
- for find in item:
- print(find)
- 12345 Law 35000 Bob Liam
- 12346 Biology 25000 Tom Hanks
- 12350 Economics 30000 Billy Kid
- 13123 Economics 55000 Finn Balor
- 13124 Maths 40000 David Young
- 13126 Physics 25000 John Wayne Smith
- 13127 History 35000 Tony Gregg
- 13128 History 27500 Lily Joe
- 13129 Chemistry 25000 Saxton Crown
- 13130 Law 22000 jimmy Arrow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement