Project for raheelwaqar3 -- 4

This project was successfully completed by raheelwaqar3 for $15 USD in a day.

Get free quotes for a project like this
Employer working
Project Budget
$15 USD
Completed In
1 day
Total Bids
Project Description

Step #1


Write a main() function that asks the user to enter five integers less than or equal to 20.

Store the numbers in a list.

Write code that error checks the numbers entered by the user, such that if a number entered is greater than 20,

print("Error: You must enter a number less than or equal to 20").

You will need a while loop for this.

Step #2


Write a function called histogram() that takes a list of integers and prints

a histogram to the screen. For example:

histogram([4, 6, 3, 10, 12]) should print the following:






Step #3


Pass the list you created in step #1 to histogram() and print the five numbers in the histogram format.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online