Reminder: for each class session and associated homework:
|
Window ~ Show View ~ Tasks
If the sine of this integer is less than x, make my count go up by 1.
if math.sin(k) < x:
Put a statement here that makes count go up by 1.
Give it a try. If you have troubles with it,
email
csse120-staff.rose-hulman.edu
Also, don't forget that you need (at the TOP of the module)
import math
for the sine function, if you write it in its long form as above: math.sin(...).
Or you can do
from math import sin
if you would rather just write sin(...).