Answer:
The answer is "Option (i)".
Explanation:
- In the given question, an array is defined. It is a collection of the same type of data element, which means, array stores either a numeric value or string value at a time.
- An array beta is defined, which contains 50 elements. The array elements indexing always starts with 0 which means, the first element of the array will be stored in an index value that is 0. That's why option (i) is correct.
That is so True because slack space mostly has visible dada
Answer:
Make main function
def main():
Make some constants for the grades
A = 5.0 or 4.0
B = 4.0 or 3.0
C = 3.0 or 2.0
D = 2.0 or 1.0
F = 1.0 or 0.0
In the main function call the function you made and make sure to use those constants for help
also don't forget to call your main function or nothing will work
Explanation:
Making the main function is good programming practice for your future
Making the constants is also helpful to your programming.
Now how it works you call the function you wrote to calculate the grade.
I don't know how helpful this was this is one of my first answers. I am `also answering how I would do it
The answer would be B because ".edu" stands for education and it shows there was a source for the information
Answer:
import pandas as pd
filename = input("Enter file name with the extension included: ")
data = {}
with open("filename", "r") as file:
content = file.readlines()
for line in content:
line_list = line.strip().split(" ")
data[line_list[0]] = line_list[1] * line_list[2]
del line_list
report = pd.DataFrame(list(data.items()), columns = ["lastname", "wages paid"])
print(report)
Explanation:
The python module prompts the user for the file name and opens the text file to extract the employee data with the python open function. It iterates over the file content and saves the last name and the wages paid to the employees ( the hours worked multiplied by the hourly rate) in the dictionary "data".
The dictionary is converted to a dataframe with the Pandas python package and displays the data in tabular format on the screen.