Message from Python discussions

December 2018

— It will depends on how many words, separated by spaces, will your text variable will have




text = "Guido van Rossum"


['Guido', 'van', 'Rossum']

— Check that and think how could you do your script to not have an ValueError with Guido's name

— The best way to store splited string in a variable it store it in one variable as list

— This kind of things, splitting text to get first_name and last_name are really tricky... how would you manage these:

- Guido van Rossum
- Richard Matthew Stallman

Which will be the first_name and the second_name?

Message permanent page

— Sorry, if I confuse you

— Uh

— That's my bad English

— Or van der

— 🤷🏻‍♂️
splitting text to get names are really tricky, that's why it's preffered to ask and save that data in separate variables rather that just one long variable

Message permanent page

— Https://

— Yeah.