jpj251@nyu.edu
¶a = 5
a == 6
False
a == 5
True
print(a)
5
a
?¶print(a)
5
a
5
c = 47
d = 5
c + d
52
2 + 5
7
answer = c + d
answer
52
12 + 25
37
120030498 + 12375
120042873
123 - 5
118
123/65
1.8923076923076922
1/123123321321321874981239847298
8.121938145172706e-30
3/4
0.75
12*4
48
c/d
9.4
3**4
81
new_answer = c**2
new_answer
2209
16**(1/2)
4.0
16**(1/4)
2.0
a = 15
b = 30
answer = a + b
print(answer)
45
answer
45
a
15
a = 6
b = 8
c = (a**2 + b**2)**(1/2)
print(c)
10.0
c
10.0
c_hello
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-31-f0a6956ee073> in <module> ----> 1 c_hello NameError: name 'c_hello' is not defined