How to split a string into a list using Python Data 08/03/2022 Autor cristian mihai Categorie Soluții -2 318 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 (11 din 24 persoane apreciaza acest articol) ShareTweetShare Despre Autor cristian mihai Solutii Asemanatoare Cum deschidem un RDP in full screen folosind Command Prompt in Windows 10 4 Cum deschidem fereastra Sound folosind Run in Windows 10 0 How to enter text with your voice on a Chromebook 8 Can’t Delete a Windows File or Folder? 2 Top 10 Linux Easter Eggs 2 How to fix – Reading a File: Permission Denied on Linux 4 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. one × = nine
Leave A Comment?