Editing Intro to Programming and Data Science (Summer 2020)/Day 3 Coding Challenges
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
* Complete [https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-2-python-lists?ex=1 Data Camp Intro to Python Chapters 2 and 3] | |||
== Questions from Python For Everybody == | == Questions from Python For Everybody == | ||
Line 13: | Line 14: | ||
== Wordplay Challenges == | == Wordplay Challenges == | ||
Check out the [[Wordplay]] project which was developed for a different version of this course, and complete as many of the following as you can. | |||
# Find all words that start with 'a' and are 9 or more letters long. | # Find all words that start with 'a' and are 9 or more letters long. | ||
Line 29: | Line 28: | ||
# Find at least one word that uses all five vowels in order. | # Find at least one word that uses all five vowels in order. | ||
#* Nate | #* Nate | ||
=== Above and Beyond === | |||
If you're feeling adventurous, try these problems and post your solutions on Piazza | |||
* 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 | |||
* (Challenge) Find the longest string where no character appears more than 1 time. (Hint: look up counters) | |||
* 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 |