Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo = 'Sedang Belajar Python!!'
- print(foo.endswith('!')) # True
- print(foo.endswith('Python!!')) # True
- print(foo.endswith('Belajar')) # False
- print(foo.endswith('python!!')) # False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement