python error "TypeError: 'int' object is not callable"

python-3.x

Solution

`time.daylight` is a number; do not attempt to call it by putting parentheses at the end.

Problem

This is my code: ``` import time a = time.daylight() print(a) ``` It results in: ``` TypeError: 'int' object is not callable. ``` What is the problem?

Original source

Related problems