import math
import cmath
#string
a="hi"
b="surya"
c=a+b
print(c)

l="surya"
print(l[0:6])

x=10
y=20
z=complex(x,y)
print(z)

x=0
print(cmath.exp(x))
x=10
print(cmath.log(x))

a=20
b=a*2
c=b*2
print(c)

set={3,2,5,7,3,5}
print(set)

l=[4,1,5,6,7,2]
print(l[-2])

l=[4,1,5,6,7,2]
print(l[-1])

l=[4,1,5,6,7,2]
print(l[4])

t=(2,3,4,2,2)
print(t)

l=['a','b','c','d','e']
print(l[1:3])
print(l[2:3])

m=[4,5,6,7,8]
m[2]=50
print(m)

s=[10,23,45,32,245,67]
s[2]=5454
print(s)

l=['a','b','c']
print(l[-1])

l=[[2,3],[3,4,2],4,3,[3,4,5,6,7,8]]
print(l)

l=[[2,3],[3,4,2],4,3,[3,4,5,6,7,8]]
l[4][3]=100
print(l)

l=[[2,3],[3,4,2],4,3,[3,4,5,6,7,8]]
print(l[:3])

print(math.sqrt(100))

a=int(input("enter the value"))
if(a%2==0):
    print("it is even")
else:
    print("it is odd")

a=int(input("enter the value of a"))
s=[10,20,30,[5,64,a],7,8]
print(s)

d={1:"hi",30:"jai"}
print(d[1])
print(d[30])

r=max(2,45,23)
print(r)
r=min(2,1,0,-3,24)
print(r)
r=max(43,67)+min(2,4)
print(r)






