-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run module.py
51 lines (51 loc) · 2.14 KB
/
Run module.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T1.py ===========
Radius
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T1.py ===========
Radius
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T3.py ===========
12
Traceback (most recent call last):
File "//E103681BY02N03S/homedrive/21359035/PS4T3.py", line 1, in <module>
print(3+4+5)/3
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T6.py ===========
Traceback (most recent call last):
File "//E103681BY02N03S/homedrive/21359035/PS4T6.py", line 2, in <module>
print(x)
NameError: name 'x' is not defined
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T6.py ===========
2
2 squared is 4
8
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T7.py ===========
The root of their difference is 1.4142135623730951
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T8.py ===========
What is your name?
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T8.py ===========
What is your name?
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T8.py ===========
What is your name?
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T9.py ===========
Radius is: 2
Traceback (most recent call last):
File "//E103681BY02N03S/homedrive/21359035/PS4T9.py", line 4, in <module>
print("Area is:.102f" %area)
TypeError: not all arguments converted during string formatting
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T9.py ===========
Radius is: 2
Area is: 12.567800
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T9.py ===========
Radius is: 2
Area is: 12.57
>>>
=========== RESTART: //E103681BY02N03S/homedrive/21359035/PS4T8.py ===========
What is your name?