Ask Question
3 July, 11:31

1

CSCI 341

0 Assignment 3

(100

Write a program that defines symbolic constants for all

twelve months of the year

+2
Answers (1)
  1. 3 July, 13:09
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers