bbelderbos, 1 month ago #Python #tip: split("\n") usually gets you what you want. But why not use splitlines() 🐍 in case strings contain different types of line endings? 📈 It's worth double-checking the string methods (and the Standard Library overall), oftentimes there's a more robust solution.💡😍
#Python #tip: split("\n") usually gets you what you want.
But why not use splitlines() 🐍 in case strings contain different types of line endings? 📈
It's worth double-checking the string methods (and the Standard Library overall), oftentimes there's a more robust solution.💡😍
Add comment