Posts by Thiago Andrade HoocKPeeR • 29 points
4 posts
-
1
votes2
answers39
viewsQ: Dictionaries dependent on other dictionaries
Good afternoon, I have the following problem, I have to write a function that receives a dictionary and a subject and print all the dependencies of the subject for example : dependencias_complicado…
pythonasked Thiago Andrade HoocKPeeR 29 -
0
votes1
answer120
viewsQ: Doubt in lines
So guys, I’m doubtful about two queue algorithms, and I’d like a little help. The first doubt, From collections import Deque class Fila: def __init__(self): self.fila = deque() # atributo fila é um…
pythonasked Thiago Andrade HoocKPeeR 29 -
1
votes3
answers559
viewsQ: Python - Find numbers larger than average
I’m having trouble with the following question: Write a python function that you receive as parameter a real tuple. The function should return the average and the amount of values greater than the…
pythonasked Thiago Andrade HoocKPeeR 29 -
0
votes2
answers977
viewsQ: Python - Find a tuple odd
I’m new in this area and recently, for a college job I couldn’t turn this line of code into tuple. function code: def encontra_impares(lista): lis = [] if len(lista) > 0: numero = lista.pop(0) if…