Dotnet Tutorialspoint Python Test If Attribute