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 Elaborate the various steps in performing a Mail Merge. Execute one mail merge operation for sending invitation for a conference which is being conducted in your organi
Question 1 Give the classification of Client/Server software architectures Question 2 Explain the characteristics of Leasing Question 3 Write a note on Activator interfa
#after writing the script of rebuilting indexed on db server it gave output command executed succesfully does this mean i m done
Internet searching algorithm: Searching: When a user enters a query into a search engine, the engine examines its index and provides a listing of best-matching web pages accordin
Question 1 Define the concept of equivalence relation. Give atleast two examples of equivalence relation Question 2 Prove that a graph G is connected if and only if it has a
In view of the fact that processes frequently need to communicate with other processes therefore, there is require for a well-structured interaction, devoid of using interrupts, a
Computer as a Data Processor: The main function of a computer is to process the input data according to a specific program to produce the desired output. This is the reason wh
In any program it is essential to move the data in the memory and in the CPU registers; there are a number of ways to do this: it can copy data in the memory to a number of registe
Impact Printers and non - Impact Printers: Impact Printers: These are printers in which the print-head strikes a ribbon, and include the daisywheel and thimble printer
Number data types store numeric values. They are an immutable data type, which means that changing the value of a number data type results in a newly allocated object. Number objec
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd