How do I remove the last character of a string if it is a newline? "abc\n" --> "abc" 2 27
What is the Python equivalent of Perl’s chomp function, which removes the last character of a string if it is a newline? 2 ...
-
April 7, 2022
- 0 Comments