2021年4月1日星期四

New to Python and not understanding the result of the code below

In python this code returns the number 7. Can someone please provide an explanation to why this is the case?

mystring = "I love Python"  x = mystring.find("Python")  print(x)  

Thank you in advance for your help!

https://stackoverflow.com/questions/66913128/new-to-python-and-not-understanding-the-result-of-the-code-below April 02, 2021 at 08:35AM

没有评论:

发表评论