Ask Your Question

Revision history [back]

This looks like homework. Here are some hints:

  • to create the list of the terms, search for list comprehension,
  • to get only odd numbers, note that the range function has a step option, so that you can jump 2 by 2,
  • then use the sum function to sum all elements of the list you obtained.

The result should start with 149 and end with 478.