Answer:
file1 = []
file2 = []
fileone = "lyric1.txt"
filetwo = "lyric2.txt"
def linereader( myfile, mylist):
for line in open(myfile, "r") as file:
line_read = readlines( line)
mylist.append( line_read)
file.close()
linereader( fileone, file1)
linereader( filetwo, file2)
# Assuming both files have same number of lines.
for index, item in enumerate(zip(file1, file2)):
if item[0] != item[1]:
print( index + 1, item)
Explanation:
The python code compares two files and returns the number and the lines from both files that do not match. The source code opens the files lyric1.txt and lyric2.txt reading each lines to different lists which are iterated to compare its items returning the number of the line and the unequal lines.
Answer:
Complete the ZipZapZop()
function so that it requests an integer from the user. The function should display a response following this pattern:
• Divisible by 3: zip
• Divisible by 5 zap
• Divisible by 7 zop
Otherwise, just display the number
Note 1 numbers that are divisible by more than one (3, 5, or 7) should contain
all applicable terms.
Notes 2 Note that you are displaying directly from this function, not returning a value to the calling function.
Hint: The number only prints if it is not divisible by ALL of 3,5,or 7
Explanation:
Answer: 2. A version older than Excel 2016 was used to create the workbook .
Explanation: The compatibility mode appears whenever a workbook initially prepared using an excel software version which is older than the excel software which is used in opening the file or workbook. The compatibility mode is displayed due to the difference in software version where the original version used in preparing the workbook is older than the version used in opening the workbook. With compatibility mode displayed, new features won't be applied on the document.
First questions answer is : K
……
Second question :
To solve these questions you take 8 digits and look for them in the table ~
01001000 H
01000101 E
01001100 L
01001100 L
01001111 O
Answer : HELLO