Computer Science, asked by divyanshsharma111020, 6 months ago

Task-2:
WAP to take word input from user and display the input in jumbled form eg.
I
Input - game
Output - agme​

Answers

Answered by valeriy69
2

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

from random import shuffle

letters = [l for l in input("enter a word: ")]

shuffle(letters)

print("".join(letters))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by Anonymous
1

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

from random import shuffle

letters = [l for l in input("enter a word: ")]

shuffle(letters)

print("".join(letters))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions