Categories
How to remove all hyphens in a variable?
There is a variable lss, declared like this: The output is: 4 4 4 How to change the variable so that 444 is displayed? lss = '4\n4\n4'
lss = '4\n4\n4'
Answer the question
In order to leave comments, you need to log in
print(lss.replace('\n', '')) 444
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question