BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/4873855350865920/lesson/24952b375f35aac712709a40139ce187?ref=outlook-calendar
SUMMARY:Lesson 7 Homework
DTSTART;TZID=America/Los_Angeles:20260407T190000
DTEND;TZID=America/Los_Angeles:20260407T200000
LOCATION:https://www.learndesk.us/class/4873855350865920/lesson/24952b375f35aac712709a40139ce187?ref=outlook-calendar
DESCRIPTION: LESSON 7 HOMEWORK
Question 1
Open a file for writing and write a small story of between 5 to 10 lines. Call your file &ldquo;story.txt&rdquo;Using try to open the text file and count the number of letters, words, sentences, and lines in it.Words are separated by spaces and new lines.Sentences are separated by periods &ldquo;.&rdquo; or other punctuation like &ldquo;?&rdquo;.Lines are separated by &lsquo;\ n&rsquo;s. Words may contain numbers and punctuation like apple80 and don&rsquo;t.
You can separate a line read from a file into words using the split function. You can remove punctuation on a word by using the replace function.word = word.replace(",","")
Keep track of each word count in a dictionary.
Write a report to a file called report.txt, which reports the number of letters, words, sentences, and lines.
Use the &lsquo;f&rsquo; formatter to write each report line to the file.
s = number of words: {numwords}\n'
You just put the variable that store&rsquo;s the\ value in { }...

https://www.learndesk.us/class/4873855350865920/lesson/24952b375f35aac712709a40139ce187?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR