Skip to main content
Thanks to Nobody for recommending to remove the space in the for loop
Source Link

Python 3, 44 43 41 37 2525 24 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Try it online!

 

then from there I gotEnd result as of 26/05/2022 thanks to

  everybody's changes lambda i:[x*2 for[x*2for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanksThanks to pxeger for suggesting to remove unnecessary spaces, to Wheat Wizard ♦ for suggesting to remove the quotes from the input and, to des54321's advice of using f=\ in the header to fix TIO with lambda functions and Nobody's help detecting the unnecessary space in the lambda.

Python 3, 44 43 41 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

 lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces, to Wheat Wizard ♦ for suggesting to remove the quotes from the input and to des54321's advice of using f=\ in the header to fix TIO with lambda functions.

Python 3, 44 43 41 37 25 24 Bytes

I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

 

End result as of 26/05/2022 thanks to everybody's changes lambda i:[x*2for x in i]

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

Thanks to pxeger for suggesting to remove unnecessary spaces, to Wheat Wizard ♦ for suggesting to remove the quotes from the input, to des54321's advice of using f=\ in the header to fix TIO with lambda functions and Nobody's help detecting the unnecessary space in the lambda.

Fixed the TIO thanks to Des's help
Source Link

Python 3, 44 43 41 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces and thanks, to Wheat Wizard ♦ for suggesting to remove the quotes from the input and to des54321's advice of using f=\ in the header to fix TIO with lambda functions.

Python 3, 44 43 41 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces and thanks to Wheat Wizard ♦ for suggesting to remove the quotes from the input.

Python 3, 44 43 41 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways: The TIO now works thanks to des54321 for their advice:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces, to Wheat Wizard ♦ for suggesting to remove the quotes from the input and to des54321's advice of using f=\ in the header to fix TIO with lambda functions.

changed it to lambda i:[x*2 for x in i]
Source Link

Python 3, 44 43 4141 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces and thanks to Wheat Wizard ♦ for suggesting to remove the quotes from the input.

Python 3, 44 43 41 Bytes

Here's my implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces and thanks to Wheat Wizard ♦ for suggesting to remove the quotes from the input.

Python 3, 44 43 41 37 25 Bytes

Edit: I have refactored it a ton and came to this answer:

print(*[x*2 for x in input()],sep="")

Try it online!

then from there I got to

lambda i:[x*2 for x in i]

The TIO doesn't work properly due to it being a function but here it is anyways:

Try it online!

Here's my other implementation of this challenge with greatly appreciated help from the comments:

print("".join(map(lambda x:x*2,input())))

Try it online!

Description

It works by separating the script using pythons map function to grab every character in the inputted string then multiplying them by 2 and joining them back together after it is converted to a map using an empty string then joining every element to it.

edit: thanks to pxeger for suggesting to remove unnecessary spaces and thanks to Wheat Wizard ♦ for suggesting to remove the quotes from the input.

Thanks to Wheat Wizard ♦ for suggesting to remove the quotes from the input.
Source Link
Loading
thanks to pxeger for suggesting to remove unnecessary spaces
Source Link
Loading
Source Link
Loading