Python For Data Science

Note- The underlined text in the exercises indicates weblinks. Don't miss those.

 

  1. Write a Python program to convert temperatures from celsius to fahrenheit.

  2. Write a Python program which asks user to input a shape (triangle, circle, square or rectangle) and returns the area based on the shape.

Math & Statistics for Data Science

  1. You have been hired as a data analyst by a utilities company to forecast the electricity and gas demand of a neighbourhood. After consulting with experts and studying historical data, you decide that the demand for electricity will range somewhere between 200 and 15000 (in thousands of Kilowatt-hours per day) and gas demand will be between 50 and 1000 (in thousands of gallons per day). Let high demand for electricity be at least 11000, and let high demand for gas be at least 650. What is the probability that at least one of the two demands will be high?