Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python https://www.python.org/downloads/ 1 My electricity bills for the last three months have been $23, $32 and $64. What is the average monthly

Use Python https://www.python.org/downloads/

 

 

1 My electricity bills for the last three months have been $23, $32 and $64. What is the average monthly 

electricity bill over the three month period? Write an expression to calculate the mean, and use print() to view the result.

Upload your code and screen shot of the output

In this exercise you're going to do some calculations for a tiler. Two parts of a floor need tiling. One part is 9 tiles wide by 7 tiles long, the other is 5 tiles wide by 7 tiles long. Tiles come in packages of 6.

  1. How many tiles are needed?
  2. You buy 17 packages of tiles containing 6 tiles each. How many tiles will be left over?

Upload your code and screen shot of the output

Assign multiple variables at once

x, y, z = 3, 5, 4

Upload your code and screen shot of the output

4 Booleans (bool), Comparison Operators and Logical Operators


image

Upload your code and screen shot of the output

  • Write code to compare these densities. Is the population of San Francisco more dense than that of Rio de Janeiro? Print True if it is and False if not.
  • Upload your code and screen shot of the output

 

Operator Syntax Description And 10 Or Not X and y The result will be true if both the operands are true, otherwise, it is false. X or y not x The result will be true if both or either of the operands is true. If both the operands are false, then the result is false. The result will be true when the operand is false. It basically inverts the boolean value of the operand.

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

I currently do not have the capability to upload images or files However I can provide you with Pyth... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting and Finance An Introduction

Authors: Peter Atrill, Eddie McLaney

8th edition

129208829X, 1292088297, 978-1292088297

More Books

Students also viewed these Programming questions

Question

Why do joints tend to be evenly spaced rather than clustered?

Answered: 1 week ago