Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid syntax for loop in python #33668

Closed
annarhnna opened this issue May 31, 2020 · 1 comment
Closed

invalid syntax for loop in python #33668

annarhnna opened this issue May 31, 2020 · 1 comment
Labels
invalid Issues and PRs that are invalid.

Comments

@annarhnna
Copy link

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

@mscdex
Copy link
Contributor

mscdex commented May 31, 2020

What does this have to do with node? Are you seeing this code in an existing python script in the node repo?

@bnoordhuis bnoordhuis added the invalid Issues and PRs that are invalid. label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid.
Projects
None yet
Development

No branches or pull requests

3 participants