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

Whats the answer? 1. (∗ +2b)^2 = a^2+4ab+4b^2
if 2 alternate exterior angles of parallel lines are 4x+78 and 13x-49, what does x equal?
can someone please help with these 5 questions?10 points!
Graph y = sin(x) on the graphing calculator. Use the graph to determine the height of the barnacle with respect to water level as the boat has traveled the give
which type of language is used in the sentence below? The artist uses bright colors and Broad brush-strokes to evoke a sense of jubilance and joy1. formal objec
Discuss the social and political impact of the Enlightenment. Must include the American Revolution within your discussion.
Describe Precipitation in a maximum of 2-4 sentances.​
simplify completely X2 + 4x - 45 ÷ x2 + 10x + 9 and find the restrictions on the variable​
What is 50/98 simplified ​
Hablando de demografia definir los conceptos de: variable, estadisticas y difusión