Quick actions

cmd+k|ctrl+k

Navigation

Languages

文字列シャッフル

Snippet info

Language

Python

Visibility

public

Author

potetotime

Created

2022-02-13T03:25:37.968547Z

Updated

2022-02-13T03:56:33.80295Z

from random import shuffle
inp=input()
inp=list(inp)
shuf=inp[1:len(inp)-1]
shuffle(shuf)
print(inp[0]+''.join(shuf)+inp[len(inp)-1])
INFO