Python Forum
Sum Series w/ Fractions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sum Series w/ Fractions
#8
(Oct-10-2016, 06:07 PM)EwH006 Wrote:
(Oct-10-2016, 05:23 PM)ichabod801 Wrote:
(Oct-10-2016, 05:14 PM)EwH006 Wrote: I'm trying to figure out how I replace the code I originally posted which adds "1  +  2  +  3  +  4  +  5  +  6  +  7  +  8  +  9  +  10  +   =  55"

No, it doesn't. Run the code you posted and see what the output is.

Your making something out of nothing. Your being case sensitive about my damn question.


sum = 0

for count in range(0, 10, 1): #starting point, ending, loop update condition (alternate to figure out)
   sum = sum + (count+1)
   print((count+1), " + ", end = " ")

print(" = ", sum)

print("\n Add a series using WHILE loop")

It was a typo to begin with, pfft. Mekire
Reply


Messages In This Thread
Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 02:42 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 03:19 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 05:14 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 05:23 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 06:07 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 06:23 PM
RE: Sum Series w/ Fractions - by Mekire - Oct-10-2016, 06:27 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 10:47 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 06:14 PM
RE: Sum Series w/ Fractions - by Mekire - Oct-10-2016, 06:14 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 11:09 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-11-2016, 04:37 PM
RE: Sum Series w/ Fractions - by micseydel - Oct-11-2016, 06:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Periodic Fractions with Fraction or float_to_ratio? TimeMen 3 3,042 May-20-2018, 03:48 PM
Last Post: ljmetzger

Forum Jump:

User Panel Messages

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