[Show all top banners]

gorkhali keto
Replies to this thread:

More by gorkhali keto
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 assignment help
[VIEWED 4518 TIMES]
SAVE! for ease of future access.
Posted on 11-27-15 3:29 AM     Reply [Subscribe]
Login in to Rate this Post:     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.

 
Posted on 11-27-15 7:19 AM     [Snapshot: 46]     Reply [Subscribe]
Login in to Rate this Post:     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))

 
Posted on 11-27-15 5:13 PM     [Snapshot: 211]     Reply [Subscribe]
Login in to Rate this Post:     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 be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 200 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
TPS EAD auto extended to June 2025 or just TPS?
I hope all the fake Nepali refugee get deported
Toilet paper or water?
ढ्याउ गर्दा दसैँको खसी गनाउच
Mamta kafle bhatt is still missing
ChatSansar.com Naya Nepal Chat
whats wrong living with your parents ?
TPS advance parole Travel document i-131, Class of Admission ?
Tourist Visa - Seeking Suggestions and Guidance
Now Trump is a convicted criminal .
Ajay Kumar Dev sentenced to 378 yrs
Biden said he will issue new Employment visa for someone with college degree and job offers
Why Americans reverse park?
Problems of Nepalese students in US
Nepali Passport Renewal
Those who are in TPS, what’s your backup plan?
Biden out, Trump next president, so what’s gonna happen to TPS, termination?
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters