Pyhon Dash Error

Hello, the user gets a result by making some markings in the software. How can I solve the error in the image? Error = After giving the first result, I want it to show the second result alone. What solution would you suggest for this? Thanks.