Posts by Gabriel Padilha • 23 points
3 posts
-
1
votes1
answer47
viewsQ: Sorted function referencing keys in a dictionary to define the sort criteria
dict = {'dc':20,'ba':10,'aa':5,'db':30,'za':1} dict_2 = sorted(dict.items(), key = lambda dict: dict[1], reverse = True) print(dict_2) When I place Dict[1] in the function argument I get the…
-
1
votes1
answer87
viewsA: Modulenotfounderror: No module named 'bs4' and cannot access module bs4
With the help of @stack.Rdoso I was able to find an answer. Basically my IDE was searching for the bs4 module in a different path than the one it was installed in. To resolve this I changed the path…
-
-1
votes1
answer87
viewsQ: Modulenotfounderror: No module named 'bs4' and cannot access module bs4
I am trying to import the bs4 module into a code and every time I try the following error is displayed ModuleNotFoundError: No module named 'bs4' Theoretically the bs4 module has already been…