Python Program To Use Split and Join Methods in the String and Trace a Birthday With a Dictionary Data Structure

Aim:

Write a program to use split and join methods in the string and trace a birthday with
a dictionary data structure.

Program:

a="hi i am python programmer"
b=a.split()
print (b)
c=" ".join(b)
print(c)

Output:

['hi', 'i', 'am', 'python', 'programmer']
hi i am python programmer 

Leave a Comment