In [ ]:
print((4*(7+2)**2)/(6+5))
print(5*5)
print(1, 2, 3*5)
29.454545454545453
25
1 2 15
In [ ]:
print("Hello, world!")
print('Hello, world!')

print("5*5 is", 5*5)
Hello, world!
Hello, world!
5*5 is 25
In [ ]:
x = 42
x / 12
Out[ ]:
3.5
In [ ]:
x = 7
print("x is", x)
print("x*2 is", x*2)
x = x * 6
print("x is", x)
x is 7
x*2 is 14
x is 42
In [ ]:
x = 7
y = x * 2
x = x * 3
print("x is", x)
print("y is", y)
x is 21
y is 14
In [ ]:
print(42)
42
In [ ]:
# Divide z by 7
z / 7
<cell>1: error: Name "z" is not defined  [name-defined]
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [7], in <cell line: 1>()
----> 1 z / 7

NameError: name 'z' is not defined
In [ ]:
import math
math.sqrt(3**2 + 4**2)
Out[ ]:
5.0
In [ ]:
from math import sqrt, log
sqrt(3**2 + 4**2)
Out[ ]:
5.0
In [ ]:
help(math.sqrt)
Help on built-in function sqrt in module math:

sqrt(x, /)
    Return the square root of x.