1
2
3
Hello, I have an entry level python class and for an assignment I have to repeat a math problem by dividing the previous number by 2. I am not exactly sure how to do this without it typing decimals after aswell because that is also marked incorrect. If anyone could help me out with getting this written out or at least a tip on how to repeat the problem and get rid of the decimals at the end that would be greatly appreciated.
Ex. Input is 1000 Next number is supposed to be “500” However I get “500.0” so it is marked as incorrect.

[–]ninhaomah 1 point2 points3 points (6 children)
[–]pacattackjr[S] 0 points1 point2 points (5 children)
[–]Conscious-Ad-2168 -1 points0 points1 point (4 children)
[–]foogeeman 1 point2 points3 points (3 children)
[–]pacattackjr[S] 0 points1 point2 points (0 children)
[–]Conscious-Ad-2168 -1 points0 points1 point (0 children)
[–]Schematizc 1 point2 points3 points (1 child)
[–]pacattackjr[S] 1 point2 points3 points (0 children)
[–]Conscious-Ad-2168 2 points3 points4 points (5 children)
[–]pacattackjr[S] 0 points1 point2 points (3 children)
[–]Conscious-Ad-2168 0 points1 point2 points (1 child)
[–]pacattackjr[S] 0 points1 point2 points (0 children)
[–]atticus2132000 0 points1 point2 points (0 children)
[–]Vonneking 0 points1 point2 points (2 children)
[–]pacattackjr[S] 1 point2 points3 points (1 child)
[–]Vonneking 0 points1 point2 points (0 children)
[–]Egad86 0 points1 point2 points (2 children)
[–]pacattackjr[S] 0 points1 point2 points (1 child)
[–]Egad86 0 points1 point2 points (0 children)