+ 2
Can we first declare a string and then use 'startwith' and 'endwith' function on this string?If not, why?
For example-: str = "My name is Anthony Gonsalves." print(str.startwith("My")) print(str.endwith("Gonsalves"))
2 ответов
+ 1
Ohk
Thanks
For example-: str = "My name is Anthony Gonsalves." print(str.startwith("My")) print(str.endwith("Gonsalves"))