Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- one= ["one","number", "three", "hii"]
- two = ["hi", "three hii"]
- for x in range(len(one)):
- stuff =(one[x:])
- word = ' '.join(stuff)
- print(word)
- if word in two :
- one[x]= "yay" #updaates the list
- 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