Python List Manipulation - Python for Datascience Tutorials

preview_player
Показать описание
Python List Manipulation - Python for Datascience Tutorials
This is Part 2 of Python Lists. This video covers various operations on Python list such as : List Indexing, List Slicing, List manipulation.

Рекомендации по теме
Комментарии
Автор

words = UserSen.split(' ')
if WordFindRaw in words:
pos = words.index(WordFindRaw)+1

That is part of my code to find out what position a word is in a sentence but it only allows me to find one position so basically if i say "you should go outside because outside is nice" and then search for the word "outside" it will only output position 4 but i want it to output 6 aswell. Please helpp. Thanks.

thanuka