Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ This is function named string_theory with a string argument that test
- if the argument starts with letter S and has more than 3 characters"""
- def string_theory(string):
- # The block to test the conditions
- if len(string) > 3 and string.startswith("S"):
- return True
- else:
- return False
- # Function Invokation
- print(string_theory("Sansa"))
- print(string_theory("Story"))
- print(string_theory("See"))
- print(string_theory("Fable"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement