Guest User

Untitled

a guest
Sep 25th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. one= ["one","number", "three", "hii"]
  2. two = ["hi", "three hii"]
  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. HOW CAN I UPDATE THE LIST TO ONE = ["one","number","yay"] instead of one= ["one,"number","yay","hi"]?
Add Comment
Please, Sign In to add comment