Editing Intro to Programming and Data Science (Summer 2020)/Day 4 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: | ||
== Python for Everybody == | |||
Chapter 7: Exercises 1, 2, 3 | |||
== Python for Everybody == | == Python for Everybody == | ||
Chapter 7: | Chapter 7: | ||
* Exercise 1 | * Exercise 1 | ||
* Exercise 2 | * Exercise 2 | ||
* Exercise 3 | * Exercise 3 | ||
=== Wordplay Level 2 === | === 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': | |||
for letter in 'abcdefghijklmnopqrstuvwxyz': | # do something | ||
* 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) | ||
* 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 | ||
== Above and beyond == | |||
# Figure out how to load two years of birth data simultaneously and compare them (e.g., identify the top 20 names from 2017 and figure out how many more/fewer people were named those names in 2018). | |||
# Visualize some of the differences (probably in Excel) |