Python Playground - using if statement in class: Online Interpreter, Compiler & Editor | Sololearn