print((4*(7+2)**2)/(6+5))
print(5*5)
print(1, 2, 3*5)
29.454545454545453 25 1 2 15
print("Hello, world!")
print('Hello, world!')
print("5*5 is", 5*5)
Hello, world! Hello, world! 5*5 is 25
x = 42
x / 12
3.5
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
x = 7
y = x * 2
x = x * 3
print("x is", x)
print("y is", y)
x is 21 y is 14
print(42)
42
# 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
import math
math.sqrt(3**2 + 4**2)
5.0
from math import sqrt, log
sqrt(3**2 + 4**2)
5.0
help(math.sqrt)
Help on built-in function sqrt in module math:
sqrt(x, /)
Return the square root of x.