Sets
Lesson 29: Sets and string .join() and .split()
One example which the video missed was using .split without arguments. It defaults to a space ’ ‘. So
s='bird dog cat'
print( s.split() )
would output
['bird','dog','cat']
One example which the video missed was using .split without arguments. It defaults to a space ’ ‘. So
s='bird dog cat'
print( s.split() )
would output
['bird','dog','cat']