<prompt> Unda chaguo la kukokotoa la Python ambalo linakubali mfuatano ulio na usemi wa hesabu k.m., 3 5 2 na kuutathmini kwa kutumia algoriti ya Shunting Yard. Usemi huo unaweza kuwa na nambari, mabano, na viendeshaji vinne vya msingi , -, , . PLINFORMAT  <response>: def shunting_yardmaneno: def apply_operatorwaendeshaji, maadili: operator operators.pop kulia values.pop kushoto values.pop ikiwa mwendeshaji : values.ongeza kushoto kulia elif operator -: values.ongeza kushoto - kulia elif operator : values.ongeza kushoto kulia elif operator : values.ongeza kushoto kulia def great_precedenceop1, op2: yaliyotangulia : 1, -: 1, : 2, : 2 kurudi utanguliziop1 utanguliziop2 waendeshaji maadili mimi 0 wakati mimi lenmaneno: ikiwa usemii : mimi 1 endelea ikiwa usemii katika 0123456789: j i wakati j lenexpression na usemij katika 0123456789: j 1 values.appendintexpressioni:j mimi j elif expressioni katika -: wakati waendeshaji na waendeshaji-1 katika - na great_precedencewaendeshaji-1, usemii: apply_operatorwaendeshaji, maadili waendeshaji.ambatishamanenoi mimi 1 elif expressioni : waendeshaji.ambatishamanenoi mimi 1 elif expressioni : wakati waendeshaji-1 ! : apply_operatorwaendeshaji, maadili waendeshaji.pop mimi 1 wakati waendeshaji: apply_operatorwaendeshaji, maadili maadili ya kurejesha0 