Wiris

Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • WirisQuizzes
                      • Advanced Validation Features
                      • Lists and sets
                      • Lists and sets

                      Example 1: Compare as lists

                      Reading time: 1min

                      Let us create an essential question asking to sort a set of integers:

                      By default,

                      • Lists are allowed, but elements need to be enclosed within curly brackets.
                      • The comma is used as a separator.
                      • The student's answer is compared as a list (taking into account order and repetition).

                      In this example, we check the option Lists without enclosers.

                      Thus, the following answers will be validated as specified in the table below.

                      Student answer Validation
                      -7,-4,1,5
                      {-7,-4,1,5}
                      -7-415
                      -7-415

                       

                       

                       

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Creating lists via comprehension
                      • Example 1: Units
                      • Example 2: Currencies

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand