Answer:
A pre-programmed function is a section of code which is reusable to perform certain routine. One benefit of using a pre-programmed function to analyze data is the code redundancy can be reduced. The function is only written for once and it can be called to perform a specific data analysis whenever it is needed.
Besides, a pre-programmed function also offer consistent analytical output as all data are processed by a same analytical procedure in the function.
It D because I hade this too so it is D
Answer:
The program code is at explaination
Explanation:
Below is the Python Function;
def check_halves(s):
# exact half not possible condition
if len(s)%2!=0:
return 0
halflen=len(s)//2
s1=s[:halflen]
s2=s[halflen:]
#null string condition
if len(s1)==0 or len(s2)==0:
return 0
#checking 1st digit of string recursively
if s1[0]==s2[0]:
return 1+check_halves(s1[1:]+s2[1:])
else:
return 0
You will find the input and output ad attachment.
Answer:
dog
Explanation:
The python program has four lists, A, B, C, and E which is a list of the first three lists. Lists are unordered indexed data structures, it is accessed by an index starting from 0 to n (which is the length of the list minus one).
The E list is a list of lists with three list items starting from index zero to two. E[0][1] is used to access the item "dog" in the first list item of the E list.
step by step
1. Open the Disk Cleanup by clicking Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Cleanup. Disk Cleanup will then calculate how much space you will be able to free on your hard drive.
2.Select the files by clicking the check box that you would like to delete (e.g. Downloaded Program Files and Temporary Internet Files) and click OK
3. Click Yes to confirm performing these actions.
To read the description of the particular program file, click the appropriate file and the file description is displayed at the bottom. If you want view the files on the particular program file (e.g. Downloaded Program Files and Temporary Internet Files), click View Files.
4. Click More Options tab to free up more space on Windows components, installed programs or System Restore. Click Clean up