Python How Can I Solve The Error Attributeerror Bool Object Has

Python How Can I Solve The Error Attributeerror Bool Object Has