Haider ali
Haider ali's Blog

Haider ali's Blog

New Feature in Python 3.10

Haider ali's photo
Haider ali
·Oct 1, 2021·

1 min read

Python 3.10 will be released on 4 October 2021, there is a new feature match do you know JavaScript, you know how switch works the no need to worry it works same as that but if you don't here are some examples.

name = 'python'
match name:
    case 'java':
        print('Java')
    case 'python':
        print('Python')

It works like a if, elif, and else together

 
Share this