Welcome to Incels.is - Involuntary Celibate Forum

Welcome! This is a forum for involuntary celibates: people who lack a significant other. Are you lonely and wish you had someone in your life? You're not alone! Join our forum and talk to people just like you.

review this java to python translation for any errors

fukurou

fukurou

the supreme coder
★★★
Joined
Dec 17, 2021
Posts
2,293
Java:
public class Brain{
    private Thinkable chi;
    private Actionable MVC;
    public Brain(actionable MVC, thinkable chobit) {
        chi=chobit;this.MVC = MVC;
    }

    public void doIt(String ear, String skin, String eye){
        String result = chi.think(ear,skin,eye);
        MVC.act(result);
    }
}

Python:
''' Brain CLASS '''


class Brain:
    def __init__(self, chobit: Thinkable, mvc: Actionable):
        super().__init__()
        self.chi: Thinkable = chobit
        self.mvc: Actionable = mvc

    def doIt(self, ear: str, skin: str, eye: str):
        temp_str: str = self.chi.think(ear, skin, eye)
        self.mvc.act(temp_str)
 

Similar threads

Shaktiman
Replies
32
Views
4K
Ventingblackpiller
Ventingblackpiller
fukurou
Replies
1
Views
214
racoon4
racoon4
fukurou
Replies
23
Views
583
Deleted member 41988
D
InMemoriam
Replies
37
Views
6K
SufferingMammal
SufferingMammal
fukurou
Replies
5
Views
589
fukurou
fukurou

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top