Python split and strip

Published: 11 July 2024
on channel: Jakubication
646
17

In Python, split is a string method that splits a string into a list of strings based on a certain character you pass into split. You can optionally specify the character to split on. By default the string is split on any space character and excess spaces are filtered out of the resulting list. You can also optionally set a limit on the number of splits that happen because by default there is not limit on the number of splits that happen. strip is a string method in Python that gets rid of a character or characters from both sides of the string the strip method was called on. You can optionally specify a set of characters to strip off from both sides. By default, any space character is removed from both sides.

Sections
0:00 - split
1:26 - strip
2:27 - outro

#python #codingtutorial #learntocode


On this page of the site you can watch the video online Python split and strip with a duration of hours minute second in good quality, which was uploaded by the user Jakubication 11 July 2024, share the link with friends and acquaintances, this video has already been watched 646 times on youtube and it was liked by 17 viewers. Enjoy your viewing!