.
.
"
# Input
text = '''
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
'''
# Output
print (text.strip().replace('
', ''))
What I want is a function that takes the input from "text" above and outputs "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
".
How can I do this?
A:
First, you need to split your text by line, as your current code will work only with a single input string. (You can also split by an empty space character, but that would still work only with a single input string, as split on an empty string returns an empty list.)
text = '''
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
. "Go-c81lar Driver.epub. 1/3. Go-c81lar Driver.epub. 2/3. Whether it is a hardware driver, update to a Packard Bell software utility or if you just feel like .
''' be359ba680
Related links:
Kommentare