Editing Intro to Programming and Data Science (Summer 2021)/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 7: | Line 7: | ||
* For every letter, print the word that uses that character the most. Hint: use two nested for loops. First one is | * 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': | for letter in 'abcdefghijklmnopqrstuvwxyz': | ||
# do something | # do something | ||
</ | </source> | ||
* 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) |