
Patrick B. answered 03/20/21
Math and computer tutor/teacher
width = 17
height = 12.0
print( width//2) #8
print(width/2.0) #8.5
print(height/3) #4.0
print(1 + 2 * 5) #11
Marie D.
asked 03/20/21<<Python>>
Assume that we execute the following assignment statements:
width = 17
height = 12.0
For each of the following expressions, write the value of the expression and the type ( of the value of the expression )
1. width/ /2
2. width/2.0
3. height/3
4. 1 + 2 * 5
Use the Python interpreter to check your answers
Patrick B. answered 03/20/21
Math and computer tutor/teacher
width = 17
height = 12.0
print( width//2) #8
print(width/2.0) #8.5
print(height/3) #4.0
print(1 + 2 * 5) #11
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.