Ask Question
2 February, 07:49

1

CSCI 341

0 Assignment 3

(100

Write a program that defines symbolic constants for all

twelve months of the year

+3
Answers (1)
  1. 2 February, 08:40
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers