Intro to Programming and Data Science (Summer 2020)/Day 4 Coding Challenges: Difference between revisions
From CommunityData
(Copying content from previous class) |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Python for Everybody == | == Python for Everybody == | ||
Chapter 7: | Chapter 7: | ||
* Exercise 1: Tamara | |||
* Exercise 2: Vanessa | |||
* Exercise 3: Zhaozhe | |||
=== Wordplay Level 2 === | |||
== | <ul> | ||
<li> For every letter, print the word that uses that character the most. Hint: use two nested for loops. First one is | |||
<source lang='python'> | |||
for letter in 'abcdefghijklmnopqrstuvwxyz': | |||
# do something | |||
# | </source> | ||
</li> | |||
<ul> | |||
<li> Carly </li> | |||
</ul> | |||
</ul> | |||
* 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 |
Latest revision as of 17:31, 20 May 2020
Python for Everybody[edit]
Chapter 7:
- Exercise 1: Tamara
- Exercise 2: Vanessa
- Exercise 3: Zhaozhe
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
- 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