Skip to content

invalid syntax for loop in python  #33668

Closed
@annarhnna

Description

@annarhnna

for i in len ([0,:,:]): #want the length of a list, use len #len() function returns the number of items of an object
t = variables[time][i,:,:]
listtime.append[t]
print(list(range(t)))

SyntaxError: invalid syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions