Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In [1] from nose.ools import assert equal from nose.tools import a3sert almost equal import re Problem 1.1 : The origins of INFO 490 So I
In [1] from nose.ools import assert equal from nose.tools import a3sert almost equal import re Problem 1.1 : The origins of INFO 490 So I believe you are getting used to doing assignments, quizzes and keeping up with the deadlines in the class every week. But there is a story behind how this wonderful class,that teachs Python and data sciences to you. began. I was told of this story by the bigdog himself but it was so wonderful that I had to type it and share it with you. Unfortunately I am very bad at multitasking, so l made a lot of punctuation mistakes. So I need your help to fix them. Here's how bigdog told me the story andI typed it down .- One fine;day I was sitting in Astronomy; building-and someone;said. " R is being used to;teach data;science-to students.(close;to;blasphemy-for some-cs-majors)" I-couldn't-bear that and;so this,class was created on these beautiful-ipythons. Data science-and ipythons are-a;match made in:heaven. Ipythons-is-easily the greatest;interactive;tool being used for data science. Ipythons-made;info490 awesome Now as you can see I made many punctuation mistakes as I used a semi-colon and dashes instead of spaces because I wasnt concentrating. So if you could help me out with replacing the semi-colons() and dashes(-) in the string with space that would be awesome to make it a readible sentence Tn l: def make_punc (atring): Making the punctuation correct Parameters string the string to correct Returns String # YOUR CODE HERE return string In [ ] : string = 'One fine ; day I print (make_punc (atring)) sitting Astronomy ; building-and some one ; said, " was in R 13 being ; used to; teach data;science-to In : assert_equal (make _punc (string) [40:65], 'building and someone said') aa3ert-equal (make_punc (" ") , ' ') aasert_eql nake_puna (";"),'') assert equal (make punc (", :,;,-")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started