1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
oksano4ka [1.4K]
3 years ago
7

Problem 1: Create a list that contains the months of the year. Problem 2: Create a loop to print the month number and name (do n

ot hard code the month number)
Computers and Technology
1 answer:
mart [117]3 years ago
8 0

Answer:

Program for problem 1:

Month_name=['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] # List which holds the month name.

Program for problem 2 :

Month_name=['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] # List which holds the month name.

for x in range (0,12): # loop which is used to print the name and number of the month.

  print(str(x+1)+" "+Month_name[x]) # It will print the number and month name.

Output of problem 1:

The program for problem 1 has no output because it has no print statement.

Output of problem 2:

The above program will print all the months with their number in which the first text will print the number of the month and the second text will print the name of the month.

Explanation:

Missing information:

"Design the program for problem 1 and problem 2" is missing on the above question.

Detailed Explanation:

  • The above program is in python language in which the first line creates a list of the names of the months.
  • Then the "for loop" is used to print the number and name of the program.
  • In this "for loop", the list index is printed by adding 1 on it with the value which is the name of the month.
  • It is because the list starting index value is 0 and the ending index value is size-1.

You might be interested in
Beside homework, what products can you use for personal use? Identify three uses and briefly describe.
Dominik [7]
<span>Beside homework, what products can you use for personal use? Identify three uses and briefly describe.

</span>
3 0
3 years ago
Read 2 more answers
Ontext clues can be used to determine the _____ of an unfamiliar word
Solnce55 [7]
Meaning of the word.

6 0
3 years ago
Personal computer is the rise of what?​
gogolik [260]

Answer:

Overuse injuries of the hand.

Obesity.

Muscle and joint problems.

Eyestrain.

Behavioural problems including aggressive behaviour.

6 0
2 years ago
There are 4 classrooms for fifth grade and 4 classrooms for sixth grade at a school. Each classroom has 20 students. A teacher i
olga_2 [115]

Answer:

what do you want

Explanation:

there are 160 people in all if thatś what you want

5 0
2 years ago
Read 2 more answers
Number of byte required to store illumination
Rina8888 [55]
If we are talking about light that’s an whole different subject
5 0
3 years ago
Other questions:
  • Which disk drive type contains a magnetic HDD with onboard flash memory serving as a non-volatile cache?
    6·1 answer
  • What acronym is used to reference the data link sublayer that identifies the network layer protocol encapsulated in the frame?
    13·1 answer
  • You are given n sorted sequences each one containing n keys. You may assume n is a power of two. We want to merge them into one
    15·1 answer
  • How do you enter the command prompt on Chromebook
    10·1 answer
  • Traceability of requirements is helpful in the followingexcept
    5·1 answer
  • Computers help eliminate the repetitiveness of manual tasks. How can this benefit you in your overall career?
    9·2 answers
  • Write a static method named contains that accepts two arrays of integers a1 and a2 as
    14·1 answer
  • What is faster C++ or go lang
    15·1 answer
  • Helllllllllppppppppppp
    9·1 answer
  • . Which responsibility belongs to the marketing function?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!