Intro to Programming and Data Science (Summer 2021)/Day 4 Coding Challenges

From CommunityData
< Intro to Programming and Data Science (Summer 2021)
Revision as of 21:14, 23 April 2021 by Jdfoote (talk | contribs) (Copying content from previous class)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Python for Everybody

Chapter 7:

  • Exercise 1: Tamara
  • Exercise 2: Vanessa
  • Exercise 3: Zhaozhe

Wordplay Level 2

  • For every letter, print the word that uses that character the most. Hint: use two nested for loops. First one is
    for letter in 'abcdefghijklmnopqrstuvwxyz':
        # do something
    
    • Carly
  • Find the longest string where no character appears more than 1 time. (Hint: look up counters)
    • Jessie
  • Use Python to find one other interesting fact about the data set. Examples (that you can't use) might be:
    • One of the words that is tied for the most vowels is aquifoliaceous
    • The word with the highest consonant to vowel ratio is sulphhydryls
    • Ji-Young, Naomi, Tiwalade, Yihan, Nate