Question: I want to use my CSS variable into an background image for changing the fill property of the SVG.

```css
:root{
  --primary: red;
}

input {
  background-image: url('data:image/svg+xml,<svg    fill="var(--primary)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z"/></svg>');
  background-position: right center;
  background-repeat: no-repeat;
}
```

```html
<input type="text>
```

Answer: 
You can't. Code runs from top to bottom and python "will" execute the body of the class (in contrast to function). So if you exit there, the program terminates.

We don't use classes to control the flow of a program. Instead use function if you want to achieve this.

Also if you don't have any code after the last `if` , then there is no need to use `quit()`. It will quit anyway.
If you're looking to make an object that runs some code then why not make a function instead than rather having to use classes, classes are usually used for making multiple objects of something and isnt used to quit a program.