split Without Arguments : Split « String « Python Tutorial






s = "this   is\na\ttest"                  
print s 
print s.split()                                
print " ".join(s.split())








5.30.Split
5.30.1.split is the inverse of join, and is used to split a string into a sequence:
5.30.2.Splitting Strings
5.30.3.split Without Arguments
5.30.4.Split by :