Adding a string in front of a string for each item in a list in python -
I have a list of websites in a string and I was adding "http" to the front for the loop The first index was " Yes ", but when I return it, the list does not change.
My list of websites is "http"
  for p: if p [0]! = "H": p = h + p else: On coming back n   When I return the list, it returns my original list and does not add "http". Can somebody help me out?
This list can also be done with the understanding:
  N = [i for i.startswith ('h') 'i' for other 'i')   
Comments
Post a Comment