<p>Having a little difficulty grasping this. For some reason the below code is wrong in working out the percentage of a given int of a minute in an hour.</p>
<p>minute =input('what is the num ')
percentage =(minute*100)/60
print percentage</p>
<p>it gives me an error message </p>
<p>what is the num 9 # so this part is fine, it asks me for an integer.but.
Traceback (most recent call last):
File “C:/Python27/percentage”, line 3, in <module>
print percentage
NameError: name ‘percentage’ is not defined</module></p>
<p>I defined percentage as being = (minute*100)/60</p>
<p>so why is there a problem??</p>