1 Python 3.6.1rc1 (v3.6.1rc1^0:e0fbe5feee4f9c00f09eb9659c2182183036261a, Mar 4 2017, 20:00:12) [MSC v.1900 64bit (AMD64)] on win322 Type "copyright", "credits" or "license()" formore information.3 >>>
4 = RESTART: C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py =
5 please enter two number1 3
6 syntax iswrong7 i don't know
8 >>>main()9 please enter two number1,2
10 ok the result is 0.5
11 i don't know
12 >>>main()13 please enter two number14 syntax iswrong15 i don't know
16 >>>main()17 please enter two number1,018 i don't know
19 Traceback (most recent call last):20 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 4, inmain21 result=number1/number222 ZeroDivisionError: division by zero23
24 During handling of the above exception, another exception occurred:25
26 Traceback (most recent call last):27 File "", line 1, in
28 main()29 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 6, inmain30 print("the division is 0",result)31 UnboundLocalError: local variable 'result'referenced before assignment32 >>>main()33 please enter two number1.1,0.0
34 i don't know
35 Traceback (most recent call last):36 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 4, inmain37 result=number1/number238 ZeroDivisionError: float division by zero39
40 During handling of the above exception, another exception occurred:41
42 Traceback (most recent call last):43 File "", line 1, in
44 main()45 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 6, inmain46 print("the division is 0",result)47 UnboundLocalError: local variable 'result'referenced before assignment48 >>>
49 = RESTART: C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py =
50 please enter two number51 1,1
52 ok the result is 1.0
53 i don't know
54 >>>python2.py55 Traceback (most recent call last):56 File "", line 1, in
57 python2.py58 NameError: name 'python2' is notdefined59 >>>pytho2.py60 Traceback (most recent call last):61 File "", line 1, in
62 pytho2.py63 NameError: name 'pytho2' is notdefined64 >>>main65
66 >>>main()67 please enter two number68 1.1,0.0
69 i don't know
70 Traceback (most recent call last):71 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 4, inmain72 result=number1/number273 ZeroDivisionError: float division by zero74
75 During handling of the above exception, another exception occurred:76
77 Traceback (most recent call last):78 File "", line 1, in
79 main()80 File "C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py", line 6, inmain81 print("the division is 0")82 UnboundLocalError: local variable 'result'referenced before assignment83 >>>
84 = RESTART: C:/Users/lenovo/AppData/Local/Programs/Python/Python36/pytho2.py =
85 please enter two number86 1,087 the division is088 i don't know
89 >>>