You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data types specify the different sizes and values that can be stored in the variable. For example, Python stores numbers, strings, and a list of values using different data types. Learn different types of Python data types along with their respective in-built functions and methods.
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"…
add_exclamation() takes one parameter named _word_. This function should add exclamation points to the end of _word_ until word is 20 characters long. If _word_ is already at least 20 characters long, just return _word_.
These functions take a string named _word_ and a single or multi character named _x_ as parameters. The function should return the number of times _x_ appears in _word_.
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.
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".