Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
''+msg+HTML_bottom # ---------------------- ReadData --------------------------------def readdata(): f=open(''restaurants.txt'',''r'') s=f.read() f.close() y=s.replace(''Reserve Now'','''') k=y.strip() l=k.split(''\n'') new=[] x=0 while x if len(lines) < 2: PrintError(''ERROR: Bad dataset in ''+ Restaurant_filename) return '''' elif: new+=[l[x].split(''\t'')] x+=1 return new lines = lines[1:] # ignore column headers return lines# ------------------------- CreateMasterList -------------------def CreateMasterList(lines): global MasterList for line in lines: d = {} fields = line.split('','') if len(fields) >= 6: if ''"'' in line: words = line.split(''"'') d[''name''] = words[1].strip() else: d[''name''] = fields[1].strip() if fields[0] == ''s'': d[''state'']=False else: d[''state'']=True d[''city'']=(fields[-3]) d[''cuisine'']=(fields[-1])]) MasterList.append(d)# ------------------------- PrintIndividual ---------------------def Printchecko(restaurant): lookfor = restaurant.strip().lower() sortlist=[] for d in MasterList: if lookfor in d[''name''].lower(): d=Highlightrestaurant(d,lookfor) sortlist.append([d[''name''].lower(),d]) sortlist.sort() header=''Restaurant with names containing "''+ restaurant+''"'' PrintTable(header,sortlist)# --------------------------- HighlightRestaurant-------------------def HighlightRestaurant (d,lookfor): front='''' back='''' mixed=d[''name''] low=mixed.lower() ln=len(lookfor) new_mixed='''' while lookfor in low: pos=low.find(lookfor) new_mixed=mixed[:pos]+front+mixed[pos:pos+ln]+back mixed=mixed[pos+ln:] low=low[pos+ln:] new_mixed+=mixed d[''name-HTML'']=new_mixed return d# ------------------------ PrintTable ----------------------------def PrintTable(header,sortedlist): s=HTML_head+HTML_top s+=''
Question 1 Write a note on advantages and disadvantages of Linux 2 Write a note on "File Permissions" on linux 3 Explain the usage of following Linux commands Cd kill
The architecture of the x86 processors forces with the use of memory segments to direct the information, the size of these segments is of 64kb. The cause of being of these segments
Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.
which one of the following is a valid identifier
To satisfy client needs through proxy server and not through main server, as some other user have already accessed that file and its copied to the proxy server, so next time a user
Python Strings: Strings in Python are recognized as an adjacent set of characters in among quotation marks. Python permits for either pairs of single or double quotes. Subsets of s
External interruptions are produced by peripheral devices, for example keyboards, printers, communication cards, etc. They are also produced by coprocessors. It is not achievable t
Cache memory: To reduce the idle time of the CPU and increase the speed of processing, a fast memory can be used. This can be done by using a large size of main memory. But th
Search strategy-artificial intelligence: Soundness: You can hear in some application domains - i.e. automated theorem proving - that a search is "sound and complet
QUESTION 1 We need to write Z specifications to record the information about passengers on board an aircraft. Here you are required to produce the specifications using appropr
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd