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

15a + 22b = 540a + 55b = 13Can someone please please help​
a. A square's perimeter is 4 times the length of its side
When did the world population reach 6 billion
please helpme if possible withanother thing
plz help, i’ve been stuck on this question and i’ve tried so many times you have to find the missing variables
What is the equation for the line that is perpendicular to line m, through B
Find the point B on AC such that the ratio of AB to BC is 2:3
When 50% of a number is added to the number, the result is 195. What is the number?
what structure surround and protect the cell?
4. Dayon and Naqueal go on a run everyday after school. For every 2 blocks Naquealruns, Dayon runs a block.A. Record the ratioB. Write an equivalent ratio if Da