Skip to content

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.

Notifications You must be signed in to change notification settings

candytale55/check_for_name_in_sentence_Py_3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

check_for_name_in_sentence_Py_3

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.

General info

The purpose of the project is just personal learning. I may revisit this code to find different solutions or to apply it under other context.

To-do list:

  • Find out why if you use an if - else flow, the sequence should be first if condtion = False, else True.

Technologies

  • Python 3

Setup

NA - It's only coding examples, there's no setup.

Status

Project is: finished, - may come back and improve it, or not.

References

Based on Codecademy's Learn Python 3 course, Code Challenges: String Methods exercises

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages