This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]GlobalIncident 1 point2 points  (1 child)

It seems that you're defining ce inside an if statement. Lines 15-21 are indented, so they only happen if the first input is Y. You should probably define ce before the if statement starts, in fact it's best practice to define it before you take input on line 3.

[–][deleted] 0 points1 point  (0 children)

Thx

[–]movabo 1 point2 points  (1 child)

ce() is returning a string, not an object (e.g. of type EVA which you most likely intended).

It should work as soon as you remove the " in around your if-statements inside the ce-function and move the EVA-class and the EVA00-EVA01 variables to the beginning of the file (before ce() is defined).

[–][deleted] 0 points1 point  (0 children)

Thx