I'm guessing the index function would be ideal if used in a try and except to let the user know that the input is invalid. Interesting video! Have you thought about doing an argparse video for Python? I've seen videos on the matter, but I think you would make a great video on it. 🙏
@PortfolioCourses Жыл бұрын
Yes, that's exactly when it would be useful Ivan! :-) And I definitely want to do an argparse video for Python too.
@ang.ace.3Ай бұрын
So im guessing if you use “print(string.find(“e”) == string.rfind(“e”)) and the string is “science” it would print false because the beginning isn’t equal to the ending? Or how would that work?