Answer:
Code works perfectly
Explanation:
There is nothing wrong with your program as it runs perfectly and displays the expected results.
You may need to compile with another compiler if you're not getting the required results.
I've added the source code as an attachment (unedited)
Answer: Nooo! Dont!
Explanation:That is a bad idea!
Answer:
Explanation:
The following python code loops through each line within a file called text.txt and counts all the words, then it divides this count by the number of sentences in the text file. Finally, output the average number of words per sentence.
f = open("text.txt", "r")
all_words = 0
sentences = 0
for x in f:
list = x.split(' ')
all_words += len(list)
sentences += 1
average = all_words / sentences
print("There are an average of " + str(average.__round__()) + " words in each sentence.")
Medieval music was in the time<span>of the middle ages. Renaissance music is the time for art and culture.
</span>
Medieval music refers to music written during the Middle Ages, around the time of 500AD - 1400. Little written music of this period survives, as making scores of music proved expensive, but most music of this time was monothonic or homorhythmic plainchant. Music from this period was generally modal and the begginings of counterpoint were seen in the form of organum. Renaissance music refers to the period from around 1400-1600, although there is some discrepancy in defining the begining of this period. Counterpoint became much more elaborate and it was over the duration of this period that composers began to leave the old modal music system in favour of tonality. Notable composers of this period <span>are Orlando Gibbons, John Bull, Thomas Tallis and William Byrd. </span>