Answer:
Here is code in Python:
#function to swap first and last element of the list
#and calculate product of all elements of list
def fun3(e):
product = 1
temp = e[0]
e[0] = e[-1]
e[-1] = temp
for a in e:
product *= a
return product
#create a list
inp_lst = [4, 1, 2, -1]
#call the fun3() with parameter inp_lst
print("product of all elements of list is: ",fun3(inp_lst))
#print the list after swapping
print("list after swapping first and last element: ",inp_lst)
Explanation:
Create a list "inp_lst" and initialize it with [4,1,2,-1]. In the function fun3() pass a list parameter "e". create a variable "product" to calculate the product of all elements.Also create a temporary variable to swap the first and last element of the list.
Output:
product of all elements of list is: -8
list after swaping first and last element: [-1, 1, 2, 4]
Diligence is required for a variety of reasons. I’m going to give you two. Remember, when you’re building a PC, you’re handling hundreds of dollars worth of hardware that are also very fragile (a cord could make all the difference). Two, you need to know and understand how to make a PC. If you have no idea how to build one, RESEARCH FIRST.
Hope this helps.
wireless technology
television signals
telegraph cables
Answer:
Explanation:
Telephone lines
Answer:
ipconfig / release command will be used to request new IP configuration information from a DHCP server
Explanation:
The ipconfig /release sends a DHCP release notification to the client so that the client immediately releases the lease henceforth updating the server's status information . This command also mark the old client's id as being available. Thus, the command ipconfig /renew then request a new IP address.
Answer:
Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.
Answer:
D
Explanation:
I just did it