the first row of the table is know as the table header.
Answer:
The python program is given with appropriate comments
Explanation:
#Implementation of printStars function
def printStars(n):
#check if n is greater than 0
if n>0:
for i in range(n):
print ('*', end="")
#Declare starCount and initialize some negative integer
starCount = -8
if starCount>0:
print ('*', end="")
printStars(starCount-1)
Answer: Planning the solution, look and feel of the software interface
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.