Correct question:
What is the missing line?
>>> myDeque = deque('math')
>>> myDeque
deque(['m', 'a', 't'])
Answer:
myDeque.pop()
Explanation:
The double ended queue, deque found in the python collection module is very similar to a python list and can perform operations such as delete items, append and so on.
In the program written above, the missing line is the myDeque.pop() as the pop() method is used to delete items in the created list from the right end of the list. Hence, the 'h' at the right end is deleted and we have the output deque(['m', 'a', 't'])
myDeque.popleft () deletes items from the right.
Answer:
Using the Task Manager to disable the OneDrive startup program.
Explanation:
To stop OneDrive for Business application from opening every time you start your computer you can use task Manager to disable the OneDrive startup program.
This can be achieved by:
- Press Ctrl+Shift+Esc keys together to open Task Manager. You can also open it by right-click on Taskbar and select Task Manager option.
- Now go to "Startup" tab in Task Manager, select "Microsoft OneDrive" item given in the list and click on "Disable" button.
- That's it. Restart your computer and OneDrive will no longer start with Windows.
Answer:
See explaination
Explanation:
#input
o_t_n=int(input('Enter a string of octal digits: '))
#required variables
i = 1
dc = 0
#loop for conversion
while (o_t_n != 0):
#to find remainder
rmd = o_t_n % 10
o_t_n //= 10
dc += rmd * i
i *= 8
#print the results
print('The integer value is ',dc)
# decimalToOctal.py
#input
d_c_n=int(input('Enter a decimal integer: '))
print("Quotient Remainder Octal")
#required variables
i = 1
o_c_n = 0
num=""
#loop for conversion
while (d_c_n != 0):
#to find remainder
rm = d_c_n % 8
d_c_n //= 8
o_c_n = o_c_n + rm * i
i *= 10
num = str(rm)+num
print("%5d%8d%12s" % (d_c_n, rm, num))
#print the results
print('The octal representation is ',o_c_n)
Answer:
The pseudocode is as given below in the explanation while the flow diagram is attached herewith
Explanation:
The pseudocode is as follows
input cust_name, num_texts
Set Main_bill=5 $;
if the num_texts is less than or equal to 60
Excess_Charge=0;
If the num_texts is greater than 60 and less than or equal to 200
num_text60200 =num_texts-60;
Excess_Charge=0.1*(num_text60200);
else If the num_texts is greater than 60
num_texts200 =num_texts-200;
Excess_Charge=0.25*(num_texts200)+0.1*(200-60);
Display cust_Name
Total_Bill=Main_bill+Excess_Charge;
Total_Bill_after_Tax=Total_Bill*1.12;