seo – Will Google index and assign keyword value to content in closed accordion sections?

It depends on you and you do not have to worry about leaving the accordion open or closed.

Let's say that the content is hidden for the user, the accordions use JavaScript to hide or show the content, as long as the javascript is accessible for Googlebot, it will not have any problem with its SEO, since Google can access the Javascript code and understand that you are using to hide the content and you can also analyze or read the hidden content of the source code.

You should check that the robots.txt file on your website is not blocking Google to understand that the hidden content is temporary. To go yourdomain.com/robots.txt and make sure that no folder or file containing the accordion javascript code is blocked as

User agent: *
Do not allow: / folder / accordion / javascript
or
Do not allow: / javascript