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

Single Inheritance, multiple inheritance and multilevel inheritance in python.

Git Commands.

Function cashing and drinking water desktop notification system.