Skip to content

Size property is not working in "for" loop #19

@ShraddhaDevaiya

Description

@ShraddhaDevaiya

Hello, I am trying to compute sum of list elements with for loop. Following is the code for it :

image

But in this it is giving an error like following :

image

As you can see, at line 15 it is working properly, but in for loop, range method it is giving an error. So can we have sum() function like in SV or solution to this issue , so that we can get sum of the elements of list ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions