Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 287 characters in body
Source Link
user85052
user85052

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online! Another one that returns a string instead of a list of characters:

for i in input():print(i,end=i)
for i in input(): asking for the input, and doing a 
 for loop for every char in the string.
 print(i,end=i) print the character, and then close 
 the line with the same character.

Try it online!

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online! Another one that returns a string instead of a list of characters:

for i in input():print(i,end=i)

Try it online!

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online! Another one that returns a string instead of a list of characters:

for i in input():print(i,end=i)
for i in input(): asking for the input, and doing a 
 for loop for every char in the string.
 print(i,end=i) print the character, and then close 
 the line with the same character.

Try it online!

added 215 characters in body
Source Link
user85052
user85052

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online! Another one that returns a string instead of a list of characters:

for i in input():print(i,end=i)

Try it online!

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online!

Python, (削除) 34 (削除ここまで) 25 bytes

lambda i:sum(zip(i,i),())

Try it online! Another one that returns a string instead of a list of characters:

for i in input():print(i,end=i)

Try it online!

[Edit removed during grace period]
Source Link
user85052
user85052
deleted 28 characters in body
Source Link
user85052
user85052
Loading
Post Undeleted by Community Bot
Post Deleted by Community Bot
Source Link
user85052
user85052
Loading

AltStyle によって変換されたページ (->オリジナル) /