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

Écoutez et écrivez le jour pour compléter la phrase. Julie regarde la télévision le _____ soir.
use the diagram . Select a pair of supplementary angles
What is the gain in speed per second for a freely falling object?.
OPEN ENDED QUESTION Tell me 3 things you know about waves.
what did the miller- Urey experiment demonstrate?
Find the absolute maximum and absolute minimum values, if any, of the function. (if an answer does not exist, enter dne. ) f(x) = x2 − x − 5 on [0, 5] absolute
someone please help me out with this​
What is the final cost for an item that cost $3000 and has a tax rate of 5%? 50
Solve the system of equations (you can use any method but I recommend substitution): y=8x-2 3x+y=42
five disadvantages of social media and reasons​