Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Displaying a calendar
#1
I've been trying to display a calendar month using Python3.6 and whilst the code works perfect from the command-line it only produces a list of errors if i try to display from a file in Atom text editor. Hope someone can help please.

#!/usr/bin/env python3.6 

# import module
import calendar

yy = 2018
mm = 11

# To ask month and year from the user
# yy = int(input("Enter year: "))
# mm = int(input("Enter month: "))

# display the calendar
print(calendar.month(yy, mm))
Reply


Messages In This Thread
Displaying a calendar - by oldDog - Jul-08-2018, 10:06 AM
RE: Displaying a calendar - by buran - Jul-08-2018, 11:25 AM
RE: Displaying a calendar - by oldDog - Jul-08-2018, 12:32 PM
RE: Displaying a calendar - by snippsat - Jul-08-2018, 12:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Run School Bell by Google Calendar darkmx6 1 2,770 Oct-29-2019, 02:12 AM
Last Post: Larz60+
  How to generate calendar with 2 formats in python luizcrf 1 3,231 Nov-01-2018, 06:46 AM
Last Post: Larz60+
  How to read calendar appointments in outlook TilakGopi 2 13,112 Apr-05-2018, 02:58 PM
Last Post: TilakGopi
  Google Calendar & Python MeeranRizvi 2 9,413 May-29-2017, 12:55 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020