Readings

The readings for Tuesday, October 04 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 dict? When would we prefer one over the other?

  2. Write a Python function, digits_to_text, that converts any digits (ie. 0 - 9) in a string to the corresponding English word:

    def digits_to_text(text):
        ''' Converts any digits in text to words '''
        # TODO: Implement function
    
    >>> digits_to_text('A B C 1 2 3')
    A B C one two three
    

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 reading06/README.md file in your GitLab repository.