TK421Noah

Untitled

Sep 7th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. newList = []
  2. for string in stringList:
  3. newString = ""
  4.     for char in string:
  5.         if char == " "
  6.             break
  7.         newString = newString + char
  8.     newList = newList + newString
Advertisement
Add Comment
Please, Sign In to add comment