Jun 23, 2024
longest_sent_count) to store the highest count.current_count) to count words in each sentence.current_count with longest_sent_count.longest_sent_count if current_count is higher.current_count to 0 for the next sentence.longest_sent_count = 0 and current_count = 0.longest_sent_count to 4.longest_sent_count to 7.longest_sent_count if a longer sentence is found.