Skip to content
#

codecademy

Here are 78 public repositories matching this topic...

unique_english_letters takes a string word as a parameter. The function should return the total number of unique letters in the string. Uppercase and lowercase letters should be counted as different letters. The list of every uppercase and lower case letter in the English alphabet is in a string "letters".

  • Updated Jan 27, 2021
  • Python

substring_between_letters() takes a string named _word_, a single character named _start_, and another character named _end_. This function should return the substring between the first occurrence of _start_ and _end_ in word. If _start_ or _end_ are not in _word_, the function should return _word_. For example, substring_between_letters("apple"…

  • Updated Jan 27, 2021
  • Python

exponents() takes two lists as parameters named bases and powers. It returns a new list containing every number in bases raised to every number in powers. For example with exponents([2, 3, 4], [1, 2, 3]) the result would be the list [2, 4, 8, 3, 9, 27, 4, 16, 64] because it would first include the three solutions for base 2 [(2**1), (2**2) and (…

  • Updated Jan 24, 2021
  • Python

check_for_name() takes two strings as parameters named _sentence_ and _name_. The function should return _True_ if _name_ appears in sentence in all lowercase letters, all uppercase letters, or with any mix of uppercase and lowercase letters. The function should return _False_ otherwise.

  • Updated Jan 27, 2021
  • Python

Improve this page

Add a description, image, and links to the codecademy topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codecademy topic, visit your repo's landing page and select "manage topics."

Learn more