We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Try running the code yourself, it's the best way to learn. Also, in the terminal you can use the help('something') function, where you replace something with a built in function or type. For something like split() you need to use > help(str.split) since split is a string method.
"Cleaning up words" means removing punctuation and/or whitespace for words. This is useful if you want to count the number of words in a novel, so it doesn't count "word," as different to "word".
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Python If-Else
You are viewing a single comment's thread. Return to all comments →
Try running the code yourself, it's the best way to learn. Also, in the terminal you can use the help('something') function, where you replace something with a built in function or type. For something like split() you need to use > help(str.split) since split is a string method.
"Cleaning up words" means removing punctuation and/or whitespace for words. This is useful if you want to count the number of words in a novel, so it doesn't count "word," as different to "word".