Join function in python

technical talkiess
0

 Join function ➖


lis = ['vishal','lakhan','dada','kaka','mama','brother','sister']


# agar apko isko iterate karna hoga to aap isko loop lagakar kar sakte o


# for item in lis:

#     print(item , " AND ", end=" ")



# agar apko upper wala code sane join function se kar sakte ho aap isko

# join function se aap list ke element me kuch add kar sakte hai .... jaise php me implode function karta hai

a = ' and '.join(lis)


print(a)


Tags

Post a Comment

0Comments

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

Post a Comment (0)