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))
The improvement that are helping support mobile computing is increase data storage online and more applications for mobile phone.
If the data storage capacity is increased, we will get a larger amount to store our files. We get more space to store our important files and access them as easily as possible. Mobile applications need to be improved, because with more applications we will find it easier to use these applications to help us do our work. With a larger number of data storage, we could be comfortable because data storage can increase your employees' flexibility by enabling them to access data anytime they want from any location.
Learn more about data storage online at brainly.com/question/13650923
#SPJ4
I have write a very simple code for you in python and i hope it will help you a lot.
def generateString(char, val):
print(char * val)
Explanation:
This is how you can create your function in python and this function will give you the desired output.
How to Call a function:
generateString('a',12)
this is how you can call the function to get output.
I hope you get the idea.
Option A. is the correct answer the other three are not professional behaviour if you would like an explanation as to why they are not just comment