Learn practical skills, build real-world projects, and advance your career
msg="everyday is a gift from god" #convert this string to list
l=msg.split()# slicing the string based on the delimiter value which is passed between parenthesis
l
['everyday', 'is', 'a', 'gift', 'from', 'god']
f="rahul,sammer,ajay"
f.split(",")
['rahul', 'sammer', 'ajay']
#convert list to string
" ".join(l) #string function
'everyday is a gift from god'