[issue34554] add match built in function

mokhalid report at bugs.python.org
Fri Aug 31 10:57:04 EDT 2018


mokhalid <mohammedkhaildson at gmail.com> added the comment:

sorry I forget to print text i mean:
match([2,5,4,'Hello']):
  2: print('here is 2')
  6: print('here is 6')
    elif 'Hello': print('Hello world')
  8:print('here is 8')
    elif 'python': print('Hello world')
    else: print('MoKhalid')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34554>
_______________________________________


More information about the Python-bugs-list mailing list