How to split a string into a list using Python Data 08/03/2022 Autor cristian mihai Categorie Soluții -7 283 Configurare noua (How To) SituatieSplit a string into a list where each word is a list item Solutie Pasi de urmat txt = “This is a test” x = txt.split() print(x) Output: [‘welcome’, ‘to’, ‘the’, ‘jungle’] Tip solutiePermanent Voteaza Up Down (9 din 25 persoane apreciaza acest articol) ShareTweetShare Despre Autor cristian mihai Solutii Asemanatoare How to install and get started with Docker Desktop on Linux -2 How to build a simple Portfolio website using Wix 7 Google Docs can now import and export Markdown 0 Tasks you can automate using Regex 5 How to uninstall KB5063878 to fix SSD disappearing issue on Windows 11 -2 How to reset settings to defaults on Chrome 0 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. six × 8 =
Leave A Comment?