jnrob900
jnrob900 jnrob900
  • 01-03-2020
  • Computers and Technology
contestada

1

CSCI 341

0 Assignment 3

(100



Write a program that defines symbolic constants for all
twelve months of the year


​

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 08-03-2020

Answer:

Lis=["Nothing","January", "February", "March", "April", "May", "June", "August", "September", "October", "November", "December"]

a= input(" Enter the Month Sequence Number")

print(Lis[int(a)])

Explanation:

We have created the list, and added each month name in it. We have added Nothing for 0 as 0 does not stands for any month, but list starts from 0 by default. We finally input a number, and displays the month meant by that sequence number, like september for 8.

Answer Link

Otras preguntas

if x=y and y=2 then 3x=
Blood circulates through many bones. True False
A graduate student is studying bacteria known to have a growth rate of 15% per day. If the population of a bacterial sample is currently 29,000 bacteria, then h
The condition which results from improper operation of a heart valve is called a _______
does a stretched rubber band have stored energy
true or false most meteoroids burn up the ionosphere
49 percent of all people who buy running shoes don't run at all. Assuming 340,000 people buy running shoes, how many will use them to run in?
what is the formula for hydrogen-hydrogen?
A customer at a raceway can drive around the track 54 times for $12. At this rate, how many times can the customer drive around the track for $8?
which digestive organs is the last organ food passes through before reaching your stomach.