I'm only a few hours new to python language. I've downloaded Pycharm and the current update is 3.7. I'm suppose to write a calendar program that reads from the command line. This program I was testing came off the internet somewhere, but it gives me an error after I input the year and date. Could someone more knowledgeable about pycharm help me out?
import calendar
# Enter in format - 2018, 1997, 2003 etc.
year = int(input("Enter Year: "))
# Enter in format - 01, 06, 12 etc.
month = int(input("Enter Month: "))
# printing Calendar
print(calendar.month(year, month))
OUTPUT
Enter Month: 01
Traceback (most recent call last):
File "C:/Users/Owner/PycharmProjects/frequency_counter/calendar.py", line 5, in <module>
import calendar
File "C:\Users\Owner\PycharmProjects\frequency_counter\calendar.py", line 14, in <module>
print(calendar.month(year, month))
TypeError: 'int' object is not callable
Process finished with exit code 1