Drag... you drag the mouse across the screen.
Answer:
The code is given below
hours = int(input("Enter time in hour: "))
minutes = int(input("Enter time in minute: "))
total time = (hours * 60) + (minutes + 15
)
total hours = int(total minutes / 60)
minutes = total hours/ 60
print("Hours: " + str(hours))
print("Minutes: " + str(minutes))
Answer:
Did you mean layer 3 switch? Because a router always operates at layer 3
Explanation:
If the answer is yes, then a layer 3 is a switch that combines the functions of a switch and a router. So it is capable of operate layer 2 and layer 3. Some of its benefits are: Support routing between VLAN, decrease network latency because the packets don’t have to make extra hops to go through a router and reduce security management. But they are really expensive and lack of WAN functionality so they are used mostly for large intranet environments.
Answer:
I guess c no. is the answer
n = int(input("How many numbers do you need to check? "))
odd = 0
even = 0
i = 0
while i < n:
num = int(input("Enter number: "))
if num % 2 == 0:
even += 1
print(str(num)+" is an even number")
else:
odd += 1
print(str(num)+" is an odd number")
i += 1
print("You entered "+str(even)+" even number(s).")
print("You entered "+str(odd)+" odd number(s).")
I hope this helps!