Readings

The readings for Tuesday, September 27 are:

  1. Automate the Boring Stuff with Python

  2. Python for Informatics: Exploring Information

Questions

Once you have completed these readings, please answer the following questions:

  1. What is the difference between a list and a string? What are some methods you can perform on a list that you can't do with a string and vice versa?

  2. Write a Python function, wsv_to_csv, that given a string s in whitespace separated format, the function returns a string in comma-separated-value format:

    def wsv_to_csv(s):
        ''' Return comma-separated-value string '''
        # TODO: Implement function
    
    >>> wsv_to_csv('Shake down the thunder!')
    Shake,down,the,thunder!
    

Feedback

If you have any questions, comments, or concerns regarding the course, please provide your feedback here.

Submission

To submit your response, please edit the reading05/README.md file in your GitLab repository.