assignment help - Sajha Mobile
SAJHA MOBILE
assignment help
Posts 3 · Viewed 3977 · Go to Last Post
gorkhali keto
· Snapshot 0
Like · Likedby · 0
Happy belated Thanks giving to all sajha users.
I just started learning Python. I'm in very beginning phase. I don't know if i'm doing right taking Python or not. Somebody told me it is lot easier to get started using python programming. So I jump in to the Python. Unfortunately I'm stuck on this third programming project. I have been trying hard some reason I can't understand it. Or may be i'm completely dumb. You can say anything. call me lazy or dumb. But please help out.

I hope there are some sajha users who knows Python language and help me to complete this assignment.
My assignment is about creating a calendar using function.
ny2
· Snapshot 46
Like · Liked by · 0

# Python program to display calendar of given month of the year

# import module
import calendar

# ask of month and year
yy = int(input("Enter year: "))
mm = int(input("Enter month: "))

# display the calendar
print(calendar.month(yy,mm))
gorkhali keto
· Snapshot 211
Like · Liked by · 0
NY, Thank you so much for your input. But actually I mistakenly didn't typed in all the information required to create calendar or I accidentally deleted some information.

The actual question goes like this:
Planet mars have a rather unusal calendar system. Instead of the usual 7 days a week that we normally use here on earth. Martian have 9 days in their week each named after different color- Redday, Bluedday, Greenday, Yellowday, Purpleday, Maroonday, Orangeday, Tanday and Silverday. Also Martian use unusual number of days in month. As few as 27 days in month or as many as 37 days.
For 34 days calendar that starts with purple day.
R B G Y P M O T S
1 2 3 4 5
6 7 8 9 10 11 12 13 14
15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32
33 34
The Martians have one further wrinkle in their calendar system. If a month happens to be so called festival month, then second and foruth week of that month do not have maroonday, Orangeday, Tanday or Silverday. (These are the Busiest Workdays of the week anyway and cancelling them is good cause for celebration) The calendar looks like this for festival month
R B G Y P M O T S
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15 16 17 18 19
20 21 22 23 24
25 26 27 28 29 30 31 32 33
34

To create calendar we need to know:
1. What day of the week does 1st day of the month starts on?
2. How many days are there in the month?
3. Is the month festival month?
Design, write and execute a python language progarm that ask the user what day of the wek chosen month starts on (" Redday", Blueday" etc.)
How many days there are in the month between 27 to 37
whether the month is festival or not?

Please log in to reply to this post

You can also log in using your Facebook
View in Desktop
What people are reading
You might like these other discussions...
· Posts 6 · Viewed 222
· Posts 3 · Viewed 502 · Likes 2
· Posts 1 · Viewed 95
· Posts 1 · Viewed 119
· Posts 1 · Viewed 125
· Posts 1 · Viewed 139
· Posts 1 · Viewed 134
· Posts 8 · Viewed 775
· Posts 7 · Viewed 803
· Posts 9 · Viewed 1437



Your Banner Here
Travel Partners
Travel House Nepal