Monday, 5 December 2022

Python String Operations - 8

0
-1
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In [26], line 12
      9 txt = "Hello, welcome to my world."
     11 print(txt.find("q"))
---> 12 print(txt.index("q")) 

ValueError: substring not found


No comments:

Kiro - Core Features

What is Kiro Kiro is an innovative AI-powered IDE that revolutionizes software development through intelligent assistance and structured wor...