Answer the question
In order to leave comments, you need to log in
How to write an expression in Python?
Same thing only in Python
VBS code block:
Dim density
If [поле значений] < 100 Then
density = "low"
elseif [поле значений] < 300 Then
density = "medium"
else
density = "high"
end if
Answer the question
In order to leave comments, you need to log in
Wow, I'm drugged here. It seems like nothing.
density = ['low', 'medium', 'high'][
( 0 if x < 100
else 1 if x < 300
else 2
)]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question