Function in Python that repeats each character in a string twice - Source Code

    

   def repeat(string):
    for item in string:
        print(item * 2, end="")
    
repeat("rehman")

    

Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

What is the difference between iostream and iostream.h in cpp?

The Basic Structure of a Full-Stack Web App