by @Sathya kiran TS Fork
{"functions":[],"name":"r","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_df63b490_bc89_47b5_8bbb_5824c48ea11b"},{"@type":"Declare","tpe":"Integer","name":"total","id":"id_b3ee9a9c_df62_4d00_9ed1_dc3db425014e","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"num","id":"id_0d65f4db_34b9_45e2_a897_0341e5469f6e","initValue":"5"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"range(n)","id":"id_dfbd278c_349e_439a_b0cd_7bde55c56bf8","body":{"statements":[{"@type":"Input","name":"score","id":"id_af50ffb9_1a92_40de_8063_9571005fc94d","prompt":null},{"@type":"Declare","tpe":"Integer","name":"total","id":"id_49c9afab_c826_4fa1_ba0e_f2faf8d7220c","initValue":"total + score"}],"id":"id_722d25f4_281a_4684_a05a_54b56cc642a0"}},{"@type":"Declare","tpe":"Integer","name":"avg","id":"id_b95139d4_9562_4784_ab66_31b896802597","initValue":"total/num"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_45a85e64_93e6_4d55_835b_46af801d3548","value":"'F'"}],"id":"id_2550196c_03a3_4696_81d2_6f1e83812ea5"},"trueBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_00dcc472_05df_4c56_8d6a_53a86086c8ed","value":"'D'"}],"id":"id_53219d2c_53d2_4a8c_baaa_e788d002337f"},"condition":"avg>=60","@type":"If","id":"id_9d7bb3df_5bbe_4131_90b3_309cda5e585e"}],"id":"id_c2a7e926_aded_4211_a83f_c3ecc5eb53fd"},"trueBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_45a2be06_9881_45dc_896b_8549a976e6ca","value":"'C'"}],"id":"id_98bc6e69_aab9_4a86_9847_6d4fbbe40e72"},"condition":"avg>=70","@type":"If","id":"id_52f2f45d_bc4e_4f1f_9f1b_726a74c86e08"}],"id":"id_e31204b7_b29c_423c_aa3f_6e40be96528c"},"trueBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_5ff86c99_fd85_46b7_8d13_4bb7158366fa","value":"'B'"}],"id":"id_3926bd48_abb1_40a0_b67b_3af30e02f761"},"condition":"avg>=80","@type":"If","id":"id_96fc9a12_3d16_463d_ae25_43dfcb2a7b81"}],"id":"id_a2242de4_1f5e_4745_ac94_b9a65092f10a"},"trueBlock":{"statements":[{"@type":"Assign","name":"grade","id":"id_1738ae50_45f9_41f9_92c9_7a2460566ffb","value":"'A'"}],"id":"id_58520d99_f422_439d_bb4d_90dac13a141b"},"condition":"avg>=90","@type":"If","id":"id_7741b4f1_b85b_486c_81d9_cf8964289956"},{"newline":true,"@type":"Output","id":"id_3959e514_9f14_4ff5_92ee_2e7a47f6d092","value":"avg:.2f"},{"newline":true,"@type":"Output","id":"id_66bd0f39_3d0b_4157_add4_5c3251b9b2cc","value":"grade"},{"@type":"Return","id":"id_20714a58_efea_440f_b43e_432d77aec94f","maybeValue":null}],"parameters":[]},"id":"id_f74dbfce_2f46_4f97_bf9e_7ec0dacb1a12","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1352}