Gy python: code looped 4 times , instead of only looping once

Hi everyone! I need help regarding this code since it looped 4 times instead of only looping once. the gh python is located at the Geometry Maker component
FURNITURE CONFIGURATION DEVELOPMENT.gh (37.1 KB)
kkkkk.3dm (29.9 KB)


FORUM 2

Hi
My answer may not be right, as I’m on my phone. This part could be causing trouble: < for areas in x: >, where x is a list of 4 items.
Switch to laptop :

x = [1,2,3,4]
for i in x:
    print(f"{i} times")

What’s Gy python?

Did you mean GH Python?

Did you upload the correct Grasshopper definition? I’m not seeing that component. Or any Python component.

1 Like