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))
Selling stock on the stock market
Answer: Parallel Array
Explanation:
Multiple arrays can be grouped together within a structure which is known as parallel array. Here the arrays are related by a common entry such as ith element in a arrays is related to the ith element of the other array.
Considering Microsoft Excel analysis, in the Create Sparkline dialog, the <u>first</u> box refers to the cell range where you want the Sparkline to appear.
When creating Sparkline in Microsoft Excel, the first thing is to create the data range for the sparkline.
Following the creation of the data range, the <u>first box</u> is already filled based on the data range created.
Hence, in this case, it is concluded that the correct answer is "<u>First box."</u>
Learn more about <u>Sparkline</u> here: brainly.com/question/24291191
Answer:
260
Explanation:
I hope it helps choose me the brainest