2
I have an array generated by a string.split(), and the value of this string is obtained by a input.
That is to say:
string = input("Digite os Nomes separados por Vírgula")
arrTeste = string.split(",")
The number of elements in the array is undefined, since the user can enter 5 names, 10 names... etc
It is possible to return all array elements randomly?
Example (Assuming the user has entered the three names below in input):
arrTeste = ["Junior", "Gabriel", "Henrique"]
The desired output would be something like:
print(funcaoAleatorizar) ## suposição da função
@Gabriel, @Junior, @Henrique ## output do terminal
I still have the detail I need to work out @ before the elements generated, but I do this myself.
Our friend! It’s much simpler than I expected, how amazing! Thank you! Enlightening and didactic.
– Dasx