Posts by ETisReal • 9 points
2 posts
-
1
votes0
answers33
viewsQ: How to return the lists of a list in ocaml?
I don’t know how to return the lists of a list in the language ocaml. For example: wanted to give the input [["Preto";"Branco"];["Amarelo";"Vermelho"]] return ["Preto";"Branco"] and then…
-
-1
votes2
answers320
viewsQ: I want to create a Python calculator with constructor, but when I create an object it says that the class is not defined
class Calculadora: def __init__(self, numero1, numero2): self.numero1 = numero1 self.numero2 = numero2 def soma(self): soma = self.numero1 + self.numero2 …
python-3.xasked ETisReal 9