Python How Can I Fix This Valueerror The Truth Value

Python How Can I Fix This Valueerror The Truth Value