Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- one= ["one","number", "three", "hi"]
- two = ["hi", "hello"]
- for x in range(len(one)):
- stuff =(one[x:])
- word = ' '.join(stuff)
- print(word)
- if word in two :
- one[x]= "yay" #updaates the list
- i want to be able to do the for loop again if the list one has changed otherwise i dont want it to do anything
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement