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.

Using class objects, Instance variables, and class variables, class methods and static method in python