Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. one= ["one","number", "three", "hi"]
  2. two = ["hi", "hello"]
  3.  
  4. for x in range(len(one)):
  5.  
  6.     stuff =(one[x:])
  7.     word = ' '.join(stuff)
  8.     print(word)
  9.     if word in two :
  10.         one[x]= "yay" #updaates the list
  11.  
  12. 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