ubsuny / 23-Homework4G3

Apache License 2.0
0 stars 11 forks source link

Code Error in algorithm part #43

Closed sharmistharanit closed 11 months ago

sharmistharanit commented 11 months ago

I tried to write code for unit test. However, the input parameters of the defined function are not working. what should I do? @laserlab @AhmedCode99

image
laserlab commented 11 months ago

once you call your parameter angle the next time angles, is that correct?

yasmensarhan27 commented 11 months ago

Hi @laserlab @sharmistharanit
sharmista and me have found a solution to this by adding int() to the angle to convert it from float type to int type and the problem is resolved.

we also have run the pytest and it worked properly.

laserlab commented 11 months ago

oh for j I see. Yes list indexes always have to be integer. Not sure though why they weren’t in the first place. Anyway good trouble shooting @yasmensarhan27 @sharmistharanit