lundi 23 septembre 2019

import random and import _random

VScode doesnt suggest me random module, only suggests _random

im trying to print a random value from a list in Python. To do that i need to import random so i can get random.choise () to work. The problem is that VScode doesnt suggest me "random" when i try to import it. Strangely enough i have once succeeded in importing random and using the random.choise () command in the past. Since then i have not downloaded or added anything to VScode. Why importing random doesnt work now?

https://gyazo.com/7703f45ce52c218ab546be1ff1ae0646




Aucun commentaire:

Enregistrer un commentaire