#STRING ENDS WITHtxt = "Hello, welcome to my world."x = txt.endswith(".")print(x) txt = "Hello, welcome to my world."x = txt.endswith("my world.")print(x) txt = "Hello, welcome to my world."x = txt.endswith("my world.", 5, 11)print(x)
No comments:
Post a Comment