Python Question | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Python Question

I'm new to Python, can somebody tell me if I type : X="alia" Print (x.Index("a")) I know it gives me : 0 in result, but how can I get 3 for the second "a" in my variable (x)? I mean first "a" in "aria" is 0 and second "a" is 3, how can I get 3 and use my index function?

8th Aug 2019, 11:58 PM
Robert Wilson
Robert Wilson - avatar
1 ответ
9th Aug 2019, 12:04 AM
BroFar
BroFar - avatar