LogiQuest
Back to Control Flow
19

What is the output of the following code?

cmd = 'stop'
match cmd:
    case 'go':
        print('moving')
    case 'stop':
        print('halt')
    case _:
        print('unknown')
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.