Solved Python numbers problem Help!

February 10, 2017 at 07:02:35
Specs: windows 8.1, Intel Core i5-6500 CPU 3.20GHz / 8.00 GM RAM
hi, i started learning python a few days ago (my first programming language) i want to find the area of a rectangle when i type

area = 0
width = 10
height = 5
area = width * height

and start debugging it does nothing and say Press any key to continue . . .

please help i don't understand the problem


See More: Python numbers problem Help!

Report •

#1
February 10, 2017 at 07:43:49
✔ Best Answer
Your program calculates the area, but you don't have it show the results. If you're using Python 3.x, try adding:
print(area)

How To Ask Questions The Smart Way


Report •

#2
February 10, 2017 at 19:48:15
my bad forgot to add print (area)
my bad thanks for the help!

Report •
Related Solutions


Ask Question