Join function in python.

 Join function in python.


abc = ["Technical Guruji", "A2motivation",

       "Trakin tech", "Aastha Creations", "Techza Gaming"]


# for index, item in enumerate(abc):

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

# a = "and".join(abc)

a = " and ".join(abc)

print(f"{a}many more are very famous youtubers..")

Comments

Popular posts from this blog

Shopping Bill Generator In python.

Should we start preparation for BCA/MCA from class 11th ? How ?

Python program to check that a list have elements in it or not .