Question

PYHTON

Try! Consider a dictionary for the month months Dictionary = { 1 : January, 2 : February, 3 : March, 4: April, 5 : M

Sample Output The dictionary items are: dict itens (lii, January), (2, February), (3, March), (4, April, (5, May), (6,

0 0
Add a comment Improve this question Transcribed image text
Answer #1
monthsDictionary = {1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", 7: "July", 8: "August", 9: "September", 10: "October", 11: "November", 12:"December"}

# print all items
print('The dictionary items are:\n' +  str(monthsDictionary))

# print all keys
print('\nThe dictionary keys are:\n' + str(monthsDictionary.keys()))

# print all values
print('\nThe dictionary keys are:\n(' + str(monthsDictionary.values()))

#loop
print('\nUsing a for loop to get dictionary items:')
for i in monthsDictionary:
    print("monthsDictionary[ " + str(i) + " ] = " + monthsDictionary[i])
Add a comment
Know the answer?
Add Answer to:
PYHTON Try! Consider a dictionary for the month months Dictionary = { 1 : "January", 2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • AutoSaveff File Home InsertPage Layout Formulas Da D1 1 Year Month 2 1 13 17 1 January February 15 4 1 March 511 April 6 1 May 12 32 15 June 1 July 91 August 17 101 September33 15 October 12...

    AutoSaveff File Home InsertPage Layout Formulas Da D1 1 Year Month 2 1 13 17 1 January February 15 4 1 March 511 April 6 1 May 12 32 15 June 1 July 91 August 17 101 September33 15 October 12 1 November34 December 21 14 2 January26 15 2 February10 13 1 162 March 17 2 April 18 2 May 14 19 17 14 27 30 222 September25 June 21 2 23 2 25 27 3 29 3 August...

  • 1. Using and exponential smoothing model, the forecast for next January sales is: Sales January 100...

    1. Using and exponential smoothing model, the forecast for next January sales is: Sales January 100 February 200 March 150 April 400 May 300 June 200 July 250 August 350 September 400 October 350 November 400 December 500 a. 150.0 b. 477.3 c. 450.0 d. Not enough information is given to make a forecast 2. Apply regression to the data shown below. The slope of the line estimated using the regression model is: Sales January 100 February 200 March 150...

  • Predict ridership for the next month if the Number of Tourists is expected to be 21...

    Predict ridership for the next month if the Number of Tourists is expected to be 21 million? Use Excel. (2 points) Month Monthly Tourists (Forecast in Millions) Monthly Uber Ridership (In Millions) January 15 2.7 February 12 2.0 March 20 4.4 April 14 2.5 May 14 2.5 June 6 1.3 July 7 1.5 August 2 1.0 September 7 1.7 October 10 2.2 November 8 1.5 December 11 3.1

  • The past sales history for Store 6 is provided in the table below. Adjust this data...

    The past sales history for Store 6 is provided in the table below. Adjust this data using the seasonality index determined using the initial 2 years.  Report the re-seasonalized forecast period 36. Month Year Period Store 6 January 1 1 56602 February 1 2 72016 March 1 3 104245 April 1 4 100981 May 1 5 95962 June 1 6 83167 July 1 7 62842 August 1 8 60116 September 1 9 41353 October 1 10 34862 November 1 11...

  • Coding in C++ Write a program using structures to store the following weather information: - Month...

    Coding in C++ Write a program using structures to store the following weather information: - Month name - Day of month (Monday, Tuesday, etc) - High Temperature - Low Temperature - Rainfall for the day Use an the input.txt file to load the data into weather structures. Once the data for all the days is entered, the program should calculate and display the: - Total rainfall for the data - Average daily temperatures. (note: you'll need to calculate the days...

  • Demand 21,520 Period September 2018 October 201823,670 November 2018 December 2018 Period Demand 22,820 March 2018...

    Demand 21,520 Period September 2018 October 201823,670 November 2018 December 2018 Period Demand 22,820 March 2018 April 2018 May 2018 23,280 24,490 24,810 June 2018 22,370 25,250 July 2018 August 2018 What is the forecast demand for March 2019 considering trend and seasonality? January 2019 25,990 February 2019 24,260 19,940 20,860 Demand 21,520 Period September 2018 October 201823,670 November 2018 December 2018 Period Demand 22,820 March 2018 April 2018 May 2018 23,280 24,490 24,810 June 2018 22,370 25,250 July 2018...

  • The past sales history for Store 7 is provided in the table below. Adjust this data...

    The past sales history for Store 7 is provided in the table below. Adjust this data using the seasonality index determined using the initial 2 years.  Report the MAD value for the re-seasonalized forecast. Month Year Period Store 7 January 1 1 54483 February 1 2 66981 March 1 3 87332 April 1 4 90292 May 1 5 82586 June 1 6 78925 July 1 7 68756 August 1 8 58782 September 1 9 32654 October 1 10 33480 November...

  • The past sales history for Store 7 is provided in the table below. Adjust this data...

    The past sales history for Store 7 is provided in the table below. Adjust this data using the seasonality index determined using the initial 2 years.  Report the MAD value for the re-seasonalized forecast. Month Year Period Store 7 January 1 1 54483 February 1 2 66981 March 1 3 87332 April 1 4 90292 May 1 5 82586 June 1 6 78925 July 1 7 68756 August 1 8 58782 September 1 9 32654 October 1 10 33480 November 1...

  • Bombs Away Video Games Corporation has forecasted the following monthly sales: January $ 110,000 July $...

    Bombs Away Video Games Corporation has forecasted the following monthly sales: January $ 110,000 July $ 55,000 February 103,000 August 55,000 March 35,000 September 65,000 April 35,000 October 95,000 May 30,000 November 115,000 June 45,000 December 133,000 Total annual sales = $876,000 Bombs Away Video Games sells the popular Strafe and Capture video game. It sells for $5 per unit and costs $2 per unit to produce. A level production policy is followed. Each month's production is equal to annual...

  • Bombs Away Video Games Corporation has forecasted the following monthly sales:    January $ 106,000 July...

    Bombs Away Video Games Corporation has forecasted the following monthly sales:    January $ 106,000 July $ 51,000 February 99,000 August 51,000 March 31,000 September 61,000 April 31,000 October 91,000 May 26,000 November 111,000 June 41,000 December 129,000 Total annual sales = $828,000 Bombs Away Video Games sells the popular Strafe and Capture video game. It sells for $5 per unit and costs $2 per unit to produce. A level production policy is followed. Each month's production is equal to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT