Like this article? You must log in first!

Strings to List in Python

Categories: Tech | Pubby Cash Received:  0 | Click to Award

Do you know how to turn strings to lists in Python? Well, here is my way to do it. First, you need to separate each value from the comma. You can use the split method to do this. In the parentheses of the split method, put quotations and then a comma inside it. After that, you need to make it an integer. To do that, use the int method. Then, use the print method to print what you just did. You should have printed a list of values without quotations.


Published from: Pennsylvania US
Liked by: H2O, Andy Tang 

Daily Deals


MECHANICSBURG WEATHER