Python Forum
Python Coding Help: Calculating Sums
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Coding Help: Calculating Sums
#3
(Jan-11-2021, 11:07 PM)Larz60+ Wrote: use the modulo operator, see: https://docs.python.org/3/library/operat...-functions

Hi Larz60,

Thank you for your response!

I forgot to mention I know how to use the modulo operator.

The issue I'm having is getting the initial sum of the digits in the list of numbers.

I'm unable to get a single number sum from all of the digits.

Is my range correct?

I should be getting that the sum = 17. (4 + 7 + 6).

But I'm unable to get that.

Any suggestions?
Reply


Messages In This Thread
Python Coding Help: Calculating Sums - by bperez - Jan-11-2021, 10:53 PM
RE: Python Coding Help: Calculating Sums - by bperez - Jan-11-2021, 11:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculating BLEU scores in Python kg17 1 2,588 Jan-12-2021, 08:26 PM
Last Post: Gribouillis
  create new variable that sums the array prasanthbab1234 3 2,374 Sep-26-2020, 02:03 PM
Last Post: jefsummers
  Loop of sums MathFreak 2 2,669 Mar-20-2019, 10:07 PM
Last Post: MathFreak
  Calculating of difficult integrals in python enitorc 0 5,580 Apr-15-2018, 01:24 PM
Last Post: enitorc

Forum Jump:

User Panel Messages

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