Answer:
The answer is a VOID method.
Explanation:
A void method is one that simply performs a task and then terminates.
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))
Answer:
if(soldYesterday > soldToday){
salesTrend = -1;
} else if(soldToday > soldYesterday){
salesTrend = 1;
}
Explanation:
The if/else statement is more explicit. The first if condition check if soldYesterday is greater than soldToday, if true, then -1 is assigned to salesTrend.
Else if soldToday is greater than soldYesterday, if true, then 1 is assigned to salesTrend.
Hi
You can directly message them.
And just in case you don't know how to message in brainly, then:
If you are using app, then
• Go to your profile and go in the option followers/following.
• There you'll see an option to search, slick that and search the name of moderators.
• Do to there profile and you'll see 2 options ( given in image attached) 1, to follow and 2nd to message.
click \: the \: 2nd \: optionclickthe2ndoption
And just in case, you are using website, then:
• Go to their profile and you'll see an option saying " write a message", click that and you'll able to message them.
Just in case you don't know the names of moderators of Brainly ( you are new here)
So here are some of them:
• Siddhartharao77
• Nikki57
• Praneethworldtopper
• Anvigottlieb
• RehanAhmadXLX
• Abhi178
• Sugarplumprincess
Hope this helps!!!
Thanks...
☺☺