| 4 | |
| 5 | |
| 6 | def get_real_task_id(task_name): |
| 7 | task_name = task_name.replace("mendelian", "mendellian") |
| 8 | task_table = { |
| 9 | 'boil': '1-1', |
| 10 | 'melt': '1-2', |
| 11 | 'freeze': '1-3', |
| 12 | 'change-the-state-of-matter-of': '1-4', |
| 13 | 'use-thermometer': '2-1', |
| 14 | 'measure-melting-point-known-substance': '2-2', |
| 15 | 'measure-melting-point-unknown-substance': '2-3', |
| 16 | 'power-component': '3-1', |
| 17 | 'power-component-renewable-vs-nonrenewable-energy': '3-2', |
| 18 | 'test-conductivity': '3-3', |
| 19 | 'test-conductivity-of-unknown-substances': '3-4', |
| 20 | 'find-living-thing': '4-1', |
| 21 | 'find-non-living-thing': '4-2', |
| 22 | 'find-plant': '4-3', |
| 23 | 'find-animal': '4-4', |
| 24 | 'grow-plant': '5-1', |
| 25 | 'grow-fruit': '5-2', |
| 26 | 'chemistry-mix': '6-1', |
| 27 | 'chemistry-mix-paint-secondary-color': '6-2', |
| 28 | 'chemistry-mix-paint-tertiary-color': '6-3', |
| 29 | 'lifespan-longest-lived': '7-1', |
| 30 | 'lifespan-shortest-lived': '7-2', |
| 31 | 'lifespan-longest-lived-then-shortest-lived': '7-3', |
| 32 | 'identify-life-stages-1': '8-1', |
| 33 | 'identify-life-stages-2': '8-2', |
| 34 | 'inclined-plane-determine-angle': '9-1', |
| 35 | 'inclined-plane-friction-named-surfaces': '9-2', |
| 36 | 'inclined-plane-friction-unnamed-surfaces': '9-3', |
| 37 | 'mendellian-genetics-known-plant': '10-1', |
| 38 | 'mendellian-genetics-unknown-plant': '10-2' |
| 39 | } |
| 40 | return task_table.get(task_name) |
| 41 | |
| 42 | |
| 43 | def sanitizeStr(inStr): |