Join function in the python

technical talkiess
0

 lis = ["vishal","prasad","kale","gore","rajat","shubham"]

if you want to join some keyword in traditional way

for item in lis:
    print(item," and ",end="")

in the new way you can use join function in the python
a = " and ".join(lis)
print(a)
print("The program end")
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)