Answer:
See explaination
Explanation:
def readFileFirstLast(filename):
# doc string
''' Function accept the filename and opens the fle
and reads all lines and strips new line character and
stores first and last in a string and return that string'''
#eception handle if file not found
try:
#opening the file
f = open(filename)
#reading the first line and striping the ne line
string = f.readline().strip()
#iterating until last line
for line in f:
pass
#concate the last line after strip the new line character to the string
string = string + " " + line.strip()
#return the string
return string
except:
#if file not found
return "File not found"
#taking the file name from user
filename = input("Enter a file name: ")
#printing the doc string in function
print("\ndoc_sting: \n"+ readFileFirstLast.__doc__+"\n")
#printing the returned string by calling the readFileFirstLast()
print("output string :")
print(readFileFirstLast(filename))
Your stored entertainment files are more secure when connected to a home network.
Answer:
It does all of these
Explanation:
The stub is able to do all of what we have in this question. It can locate computer connections, locate ports on a computer, transit message to server etc.
in distributed computing, a stub is a piece of code that does the work of converting parameters that are passed between the client and the server at a time of remote procedure call.
The main objective of an RPC is to allow the client to call procedures remotely on another server.
The protocol that should be implemented is that one needs to enable hosts on the network to find the IP address.
<h3>What is IP address?</h3>
It should be noted that IP address simply means a unique address that defines a device on the internet.
In this case, the protocol that should be implemented is that one needs to enable hosts on the network to find the IP address.
Learn more about IP address on:
brainly.com/question/24930846
#SPJ12
Answer:
Just answer everyones questions and youll be at the right rank in no time
Explanation: