I am trying to import choices from the random library in python but I get an error.
from tkinter import *
from itertools import accumulate
from random import choices
from string import ascii_lowercase
I get the error that says File "c:\Users\coope\Downloads\hw3.py", line 26, in from random import choices builtins.ImportError: cannot import name 'choices'
Aucun commentaire:
Enregistrer un commentaire