Create a program that reads three lines from a text file. Each line should be read one at a time. For each word on a line, the user should be asked to specify how many syllables are in that word. The...





Create a program that reads three lines from a text file. Each line should be read one at a time. For each word on a line, the user should be asked to specify how many syllables are in that word. The program should then inform the user if the file contains a valid Hiku using the function below:


def isHiku (firstLine, secondLine, thirdLine):
if (firstLine == 5 and secondLine == 7 and thirdLine == 5):


return True return False


print("The file contains a Hiku:", isHiku(5,7,5))
Note: You must replace the values in the function with the numbers counted by your program.






Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here