Re: match SyntaxError
Oscar Benjamin via Tutor <[email protected]> Tue, 9 Dec 2025 12:35:15 +0000
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <CAHVvXxQ81GwWxgNnkArVPHVKppdRD8Z1DKVRYy_s3_B1+hOFSw@mail.gmail.com> |
On Tue, 9 Dec 2025 at 12:18, Francis Belliveau via Tutor <[email protected]> wrote: > > I am getting: > "SyntaxError: invalid syntax" for the line containing "match val:" > The '^' indicator is pointing to the 'v' of "val". > > Python version is: 3.9.6 (default, Oct 17 2025, 17:15:53) [Clang 17.0.0 (clang-1700.4.4.1)] on Mac OS 26.1 The match case statement was added in Python 3.10. You would need to use a newer version of Python to test this example. -- Oscar _______________________________________________ Tutor maillist - To unsubscribe send an email to [email protected] To unsubscribe or change subscription options: %(web_page_url)slistinfo/%(_internal_name)s