Python Forum
Help! For pool to While pool
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help! For pool to While pool
#1
def function(n, step):
    s = 0
    for i in range(1, n, step):
        s += i
    return s
I need to translate to While pool. PLS help me! :)

User has been warned for this post. Reason: No BBcode, multiple threads
Reply
#2
http://www.pythonforbeginners.com/contro...hile-loops

And it's loop, not pool :-)
Reply
#3
hey did u solve it?can u share here?
Reply
#4
What's to solve? Looks fine to me. Returns the sum of the first n-1 integers.
I am trying to help you, really, even if it doesn't always seem that way
Reply
#5
(Dec-06-2017, 10:32 AM)gruntfutuk Wrote: What's to solve?

OP wants implementation using while loop
(Dec-03-2017, 10:23 AM)nikecorei5 Wrote: need to translate to While pool.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculate time taken to cool down a pool in python edwinostby 0 1,779 May-24-2021, 04:12 PM
Last Post: edwinostby
  Please explain me Pathos Pool() Antigr 1 3,674 Jun-27-2018, 06:25 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020