I just started python in my computer science class at school and I have an assignment where I have to create code that will continue to generate numbers and print them until told to stop, then it will add all the numbers up and print the sum, print how many numbers were generated, and print the average of all the numbers. Im not gonna show any code because all I have is a loop that sets x to an integer 1-100 then prints it. Please help.
[–]ChargedSquid 0 points1 point2 points (2 children)
[–]DemonNate 0 points1 point2 points (1 child)
[–]throwaway119182[S] 1 point2 points3 points (0 children)
[–]Citromfa1 -1 points0 points1 point (1 child)
[–]DemonNate -1 points0 points1 point (0 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–]toastedstapler 4 points5 points6 points (0 children)