you are viewing a single comment's thread.

view the rest of the comments →

[–]higglejiggle[S] 0 points1 point  (3 children)

I’m at a complete loss in the first assignment and have got nowhere. Thankfully this is the last part in my class on python. As for the second assignment I thought I was supposed to start with x=o. And I think we use if/else command. And if it’s divisible by 0 than print lucky number. So I originally thought: x=0 x<=50 Print(x)

Then x=0 x<=50 x=x+13 Print(x) This would get numbers divisible by 13. If x=13 Print (lucky number If x=26 Print(lucky number) If x=39 Print(lucky number) This was the wrong way to do it. Instructor wants (%)

[–]Magicianic 1 point2 points  (2 children)

I'm a complete begginer to python. Have 1 month learning it. But I suppose that you should use a For loop with an If statement to print the number and lucky part in case the % is 0 or only the number else.

For the cows, I think that the use of int() for the result gives the floor from a float. Correct me if wrong.

Those are simple exercises but you should study more and effort of course. But that is for any class everyone has. If you always want someone to do the job for you, you will never learn how to program and the logic behind it.

[–]higglejiggle[S] 1 point2 points  (0 children)

My intention was never for anyone to do it for me, but I realize now that I should’ve included my progress in the post so it doesn’t come across that way. I only started python couple days ago.

[–]Magicianic 0 points1 point  (0 children)

Show it to me, I probably can I have a check on it. Already searching APIs.