I'm creating a function that shuffles and returns the typed word, but I do not know how to use print
(if that's the case) to show the result of the function below:
def f():
a = []
x = 0
while x < len(word):
a.append(word[x])
x += 1
if x > len(word):
break
return a.sort()
word = input()
f()
'''Aqui ficaria o print. Seria algo parecido com "print(f())"? Tentei exatamente isso e a resposta foi "None".'''