How do i search for one letter in a String? For example the third letter in Word="Hello". The thought is that i that way can use:
if (the third letter in Word)=="l":
Thanks!
if (the third letter in Word)=="l":
Thanks!
if string.index(some_string, some_sub_string) == 2:
.. do_something..
someStr.index(subStr)
index = someStr.find(subStr) if index != -1: # do something knowing someStr[index] == subStr if subStr is on character.
if string.index(some_string, some_sub_string) == 2: .. do_something..
Comment