• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

Random

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

python
23rd Oct 2019, 1:40 AM
Seca
3 odpowiedzi
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Fix the following code
2 Votes
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes