Intro to Programming and Data Science (Fall 2023)/Week 4 Coding Challenges: Difference between revisions
From CommunityData
(Copying content from previous class) |
No edit summary |
||
Line 3: | Line 3: | ||
Chapter 7: | Chapter 7: | ||
* Exercises 1, 2, and 3 | * Exercises 1, 2, and 3 | ||
** | ** Subulola, Zack, Cara | ||
=== Wordplay Level 2 === | === Wordplay Level 2 === | ||
Line 12: | Line 12: | ||
# do something | # do something | ||
</syntaxhighlight> | </syntaxhighlight> | ||
** | ** Mazie | ||
* Find the longest string where no character appears more than 1 time. (Hint: look up counters) | * Find the longest string where no character appears more than 1 time. (Hint: look up counters) | ||
** | ** Mary Grace | ||
* Use Python to find one other interesting fact about the data set. Examples (that you can't use) might be: | * 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 | ** One of the words that is tied for the most vowels is aquifoliaceous | ||
** The word with the highest consonant to vowel ratio is sulphhydryls | ** The word with the highest consonant to vowel ratio is sulphhydryls |
Latest revision as of 18:58, 5 September 2023
Python for Everybody[edit]
Chapter 7:
- Exercises 1, 2, and 3
- Subulola, Zack, Cara
Wordplay Level 2[edit]
- 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
- Mazie
- Find the longest string where no character appears more than 1 time. (Hint: look up counters)
- Mary Grace
- 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