[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 3910 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 365 days
Recommended Popular Threads Controvertial Threads
श्राद्द
TPS Re-registration
सेक्सी कविता - पार्ट २
What are your first memories of when Nepal Television Began?
पाप न साप घोप्टो पारि थाप !!
पुलिसनी संग - आज शनिवार - अन्तिम भाग
निगुरो थाहा छ ??
TPS Re-registration case still pending ..
ChatSansar.com Naya Nepal Chat
Lets play Antakshari...........
What Happened to Dual Citizenship Bill
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
is Rato Bangala school cheating?
मेरो अम्रिका यात्रा -२
Do nepalese really need TPS?
कता जादै छ नेपाली समाज ??
susta manasthiti lai ke bhanchan english ma?
कृष्ण नै अन्तिम सत्य
Nas and The Bokas: Coming to a Night Club near you
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
is Rato Bangala school cheating?
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