Courses
LoginStart now
Courses
LoginStart now
0

Random

Given a list, how do you get a random element from it?

python
23rd Oct 2019, 1:40 AM
Seca
3 Respostas
+ 4
Lookup the random module. https://www.sololearn.com/discuss/1952201/?ref=app https://www.sololearn.com/discuss/1843464/?ref=app https://www.sololearn.com/discuss/335729/?ref=app https://www.sololearn.com/discuss/1146071/?ref=app https://www.sololearn.com/discuss/1205128/?ref=app https://www.sololearn.com/discuss/444125/?ref=app https://www.sololearn.com/discuss/1593652/?ref=app https://www.sololearn.com/discuss/1081212/?ref=app
23rd Oct 2019, 1:51 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
thank you to you both
23rd Oct 2019, 3:46 AM
Seca
+ 1
it works
23rd Oct 2019, 3:46 AM
Seca

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Fix code
0 Votes
Fast coding (mobile)
1 Votes
..
1 Votes
Beginner_to_SoloLearn
2 Votes
How can I turn my .py files to .exe files?
1 Votes
Coding help
2 Votes
How to learn C++ and how long does it take
1 Votes
DSA doubt
1 Votes
Bridge pattern use case
0 Votes
Recover challenge history
0 Votes