Created
October 14, 2022 08:40
-
-
Save RaMSFT/901a75bd461efd2d34ca21215c647318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def strin_odd_or_even(str): | |
| str_length = len(str) | |
| if str_length % 2 == 0: | |
| return True | |
| else: | |
| return False | |
| print(strin_odd_or_even("apples")) | |
| print(strin_odd_or_even("pears")) | |
| print(strin_odd_or_even("cherry")) | |
| print(strin_odd_or_even("mango")) | |
| print(strin_odd_or_even("banana")) | |
| print(strin_odd_or_even("kiwi")) | |
| print(strin_odd_or_even("blueberry")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment