Create a count-controlled while loop to generate

Assignment Help Python Programming
Reference no: EM132383501

Python Lists and Dictionaries

Python has several data types that can be used to work with collections of data, including lists, sets, dictionalries and tuples. This week we wil work with lists and dictionaries.

Your work includes a Zybooks reading assignment and two programming assignments, one for lists and one for dictionaries. TheZybooks reading assignment includes some sections from Chapter 3 about data types and from chapter 8 about lists and dictionaries.

Your tasks are to:

1. complete the list programming assignment:

Write and submit a program that does the following:

create an empty Python list

Create a count-controlled while loop to generate and append 1,000 random integers to the list. Each integer should be between 1 and 100, including 1 and 100.

Using the for statement to iterate the list, calculate and print:

the sum of the values in the list.

the minimum of the values in the list.

the maximum of the values in the list.

the average of the values in the list.

You should be able to do step 3 with a single loop, followed by a statement to find the average and then print statements to show the results. The statement to find the average should use the list length function, not the number 1,000, which means it should work no matter how many numbers are in the list.

2. complete the dictionary programming assignment:

Your task is to use a Python dictionary to provide information about the poinbts scored by a basketball team in one game.

Write a program that does the following:

Using the assignment statement below, create a dictionary with points scored by each of the Philadelphia 76ers against the Brooklyn Nets on April 20, 2019.

points = dict(Harris=24, Butler=11, Embiid=31, Simmons=15, Reddick =9, Scott=8, Ennis=7, Marjanovic=4, Bolden=1, McConnell=2)

Iterate the dictionary once, resulting in a printout that shows us:

a list of the players and the points they each scored, with one player on each line.

the total number of points they scored.

the name of the highest scorer on the team.

You should submit your properly documents source code. You should start with documentation as a tool to help you design your software.

Attachment:- Python.rar

Reference no: EM132383501

Questions Cloud

Find a nearly continuous flow of substances back : If we inspect most cell membranes in a living human body, we would find a nearly continuous flow of substances back and forth across the plasma membrane.
Write a shell script named stick which plays a matchstick : Write a shell script named stick which plays a matchstick-picking game. Given an initial number of sticks, players take turns picking.
What is the best way to measure bone density : a. Explain how aging and the lack of estrogen contribute to the development of osteoporosis.
Why is it important for organisms to maintain a ph : Why is it important for organisms to maintain a pH within a very narrow range and what type of a compound (molecule) is used to help maintain that narrow range?
Create a count-controlled while loop to generate : Create a count-controlled while loop to generate and append 1,000 random integers to the list. Each integer should be between 1 and 100, including 1 and 100.
How your current practice may change in the future : Discuss how your current practice may change in the future as a result of your understanding of one particular Essential of Master's Education in Nursing.
What is your action plan to meet your goals : Are you qualified and if not what would you need to do to increase your chances of being competitive for this position, What steps have you taken over.
Adults cats are often used for dissection : Describe some difficulties you might encounter using an adult cat for a dissection as compared to a fetal pig, with focus on the skeletal system.
Four identified species of giraffe : You are to examine the available information on the four identified species of giraffe. (1) Prepare a table separating them into 4 species by their physical cha

Reviews

Write a Review

Python Programming Questions & Answers

  How do you connect the sakila database and add a record

In python, how do you connect the sakila database and add a record to the database? The response paper should be in APA format.

  Convert between temperatures in fahrenheit

Write a Python application that allows the user to convert between temperatures in fahrenheit and temperatures in celsius.

  Write a program that reads the name of a data file

Write a program that reads the name of a data file which contains student ids (such as c1234500) and their scores. The program will find and print the average score, the number of students processed.

  Calculate the total cost for the grocery_item

Using the update function format a dictionary entry which contains the name, number and price entered by the user. Calculate the total cost for the grocery_item

  Create a text-based program for simulating a supermarket

ITECH1400 - Supermarket Self-Service - creating a text-based program for simulating a supermarket self-service checkout using the Python 3 programming language

  Create a jes function

Create a JES function named level1() and include the relevant behaviours. Specifically, in this level, you only need to detect just one character from the text and the text is only in a single row.

  Create an application that displays the number of millimeter

Create an application that displays the number of millimeters that the ocean will have risen each year for the next 25 years.

  Write a function that is given the name of the text file

You are writing a program that converts common texting abbreviations to English words to allow people like yours truly can understand.

  Relationship between the features and the output variable

AIT91001 - Computational Intelligence and Machine Learning - apply the machine learning process to model the relationship between features and output variable

  Write a program to find the longest open reading frame

You should provide a proper README file including introduction to your script, error handling, simple explanation to your input and output files.

  Why modules would benefit an application you are designing

What is operator precedence? How can a debugger help you an Find operator precendance error? Define in order the steps/phases of SDLC.

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd