Skip to content
Discussion options

You must be logged in to vote

Hi @harikrushna171!

I would say that the easiest way to do that is as follows:

list_bodies = [a, b, c, d]
for body in list_bodies:
    design.delete_body(body)

Or if you want to do it through list comprehension:

[design.delete_body(b) for b in list_bodies]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by harikrushna171
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants