Yes, all the time. Sometimes, it's feeling based. You get a bad vibe from someone, and you tend to go without without really giving said person a chance. Sometimes those vibes are helpful, sometimes it's you overreacting from bad experiences. (: hope all is well!
Answer:
Add this statement at the end of your steps() function
return ""
This statement will not print None at the end of steps.
Explanation:
Here is the complete function with return statement added at the end:
def steps(number): # function steps that takes number (number of steps to print) as parameter and prints the steps specified by number
i = 1 #assigns 1 to i
while i < number + 1:
string = str(i) * 3 #multiplies value of i by 3 after converting i to string
string1 = str(string) # stores the step pattern to string1
if i != 0: # if the value of i is not equal to 0
string1 = (i * 4*' ' + "\b" + "\b" + "\b" + "\b") + string #set the spaces between steps
elif i == 1: # if value of i is equal to 1
string1 = string #set the string to string1
print(string1) # print string1
i = i + 1 # increments i at each iteration
return "" #this will not print None at the end of the steps and just add a an empty line instead of None.
Screenshot of the corrected program along with its output is attached.
Answer:
Required code is given below:
Explanation:
def add_to_dict(dictt, key,value):
if key in dictt.keys():
print("Error. Key already exists.")
else:
dictt[key]=value
return dictt
def remove_from_dict(dictt,key):
try:
dictt[key]
dictt.pop(key, None)
return dictt
except KeyError:
print("No such key exists in the dictionary.")
def find_key(dictt,key):
try:
value=dictt[key]
print("Value: ", value)
except KeyError:
print("Key not found.")
Answer:
C. Z-wave
Explanation:
The Z wave is a wireless communications protocol used primarily for automation. The Z- wave operates using a mesh network and then uses low energy radio waves to communicate from appliance to appliance.
The Z wave operates on a lower frequency than most other popular RF devices, thus making interference nonexistent.
The range of the Z-wave is 100m. Hence, it can give a perfect coverage from the base station to the company.
<em>Option A is wrong</em> . This is because the Zigbee is insecure and has a low coverage range (10m-20m). This means that there are possibilities of interference and also improper coverage beyond 50 m.
<em>Option B is wrong.</em> This is because Bluetooth devices are insecure, can loose connections under certain conditions. They have a range of 10m which is a lot lower than 50m benchmark.
<em>Option D is wrong</em>. NFC stands for Near Field Communication. This means its range is practically about 4cm and it cannot be used for long ranges as the company intends.
He should send an email to all of his colleagues to inform them of all of the directions. Emails are an easy and fast route to letting people know what's up.
- Mabel <3