Files
pythonkurs/teil4/find_eigen.py
Raspithek 3d8cb9128d Teil 6 "Objekte ist neu
Repository aufgeräumt.
2023-02-24 06:41:05 +01:00

13 lines
181 B
Python

def find_in_string(s, c):
for pos in range(0,len(s)):
if(s[pos] == c):
return pos
return -1
print(find_in_string('Homer','e'))
print(find_in_string('Homer','n'))