by @Akein Gomes Fork
{"functions":[],"name":"grade","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_7da70d0b_7f51_4bd9_8c39_d10573b1a320"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"mark","lengthValue2":"5","id":"id_7099a716_e907_4b84_9b11_de08e542712b","initValue":"0"},{"@type":"Input","name":"mark","id":"id_7c463756_2c58_42a6_99f9_d3eceea982a2","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a454d771_7c22_448e_9053_a27f652d9700","value":"\"Fail\""}],"id":"id_fed7b051_7d6a_4c55_98a9_60d3ba47eafa"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e70564b1_f2e8_469e_a6c0_f2cb8c5d9ba2","value":"\"Pass\""}],"id":"id_2e2e9112_4641_47db_8377_b85910e2fc9a"},"condition":"mark >= 40","@type":"If","id":"id_c6a23c7d_5a2b_4986_8c45_0129826e2e53"}],"id":"id_45738d7e_7fc8_4b9c_b697_1188b4c732bc"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2ebee741_825c_43bb_8e24_0dfde5163429","value":"\"Merit\""}],"id":"id_68b28b8a_b280_4dae_9bcb_6334b4e9791c"},"condition":"mark >= 60","@type":"If","id":"id_10d570f7_a43f_4e50_8231_493720fed097"}],"id":"id_1a8a916f_ab57_4de2_95df_0c9ac3523b34"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f451433f_565b_4070_abd0_799c53269de3","value":"\"Distinction\""}],"id":"id_01edb95f_c0e5_40ce_8efa_e85f09592c53"},"condition":"mark >= 80","@type":"If","id":"id_9a4bea44_c3fe_4a3b_830b_5f6e6018b446"}],"id":"id_e7533171_3308_406f_bfd1_c18df18149a6"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_9d4b0803_05d7_4171_addd_60fd1e70ff82","value":"\"Invalid mark\""}],"id":"id_09e5b824_84c2_43a9_86a6_e34dc483a85e"},"condition":"mark > 100","@type":"If","id":"id_d79d7bf8_83ae_4172_8c2a_0811425179ae"}],"id":"id_9b7a392e_a4e8_4610_a20c_0a80faf5137b"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a6ecf987_9329_40af_8f81_7417dc3ac921","value":"\"Invalid mark\""}],"id":"id_2c12c604_1332_4f7c_8740_48a5e5064d67"},"condition":"mark < 0","@type":"If","id":"id_31c3dbc0_5a15_4344_b831_fd58d8775a3e"},{"@type":"Return","id":"id_98992780_454a_44bc_824b_15b46205bb81","maybeValue":null}],"parameters":[]},"id":"id_dc4ec87e_1199_4a26_a549_6f287237056a","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":291}