Ask Question

1

CSCI 341

0 Assignment 3

(100

Write a program that defines symbolic constants for all

twelve months of the year

+1
Answers (1)
  1. 24 May, 20:31
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “1 CSCI 341 0 Assignment 3 (100 Write a program that defines symbolic constants for all twelve months of the year ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers