Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

Difference between two 'functions'?

$
0
0

What distinguishes a from b?

a = any(x for x in range(4) if x > 0)
b = any(x > 0 for x in range(4))

print(a)
print(b)

10 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles