<jupyter_start><jupyter_text>Now You Code 4: Temperature Conversion Part 1Write a Python program to input a temperature in Fahrenheit or Celcius,then converts it to the other unit. The program should first input a temperaturethen input a unit of C or F. It should then convert the temperature to theother unit. After you get it working initially, re-write it to handle bad input. Example Run 1:```    Enter temperature: 212    In which units is that: C or F? F    That's 100.0 C```Example Run 2:```    Enter temperature: 0    In which unit is that: C or F? C    That's 32.0 F```NOTE: You can find the formulas online.  Step 1: Problem AnalysisInputs:Outputs:Algorithm (Steps in Program):<jupyter_code>#Step 2: write code here<jupyter_output><empty_output><jupyter_text>Part 2Now that you got it working,  re-write your code to handle bad input using Python's `try... except` statement. When the exception occurs, you can just print the message and exit the program.Example run:```    Enter temperature: wicked hot    Sorry, that's not a temperature I can convert.```**Note:** Exception handling is not part of our algorithm. It's a programming concern, not a problem-solving concern!<jupyter_code>## Step 2 (again): write code again but handle errors with try...except<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07704160246533127, 'fraction_numerical': 0.014637904468412942, 'mean_word_length': 4.647826086956521, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '66664', 'license': 'MIT', 'n_tokens_mistral': 378, 'n_tokens_neox': 345, 'n_words': 184, 'path': 'content/lessons/04/Now-You-Code/NYC4-Temperature-Conversion.ipynb', 'repo_name': 'MahopacHS/spring2019-dinha0107', 'size': '1298'}