in this lession we can print your information with name
and your age and result will be :
For use calculation two number not oshary we need to
write this in visual code :
Result will be :
With number oshery :
And result will be :
Python list we can display lists with :
Lists 2 :
We can use too codzilla += tutorial the same result
+= is like
x=x+extension .extend( )
.append(" ")
.insert(ind_no, " " )
.remove(" ")
.clear()
.pop() > removes last item & can be saved as a var
.index(" ")
.count(" ")
.sort() > alphabetic sorting
.copy() > shallow copy = changes on the old list doesn't affect it
Function :
Resutl :
cube :
summation :
Substract :
Condition
Condition with calculation
Library numpy :
Getting start :
import numpy as np
x = [Link] ([1,10,15,30,55])
print (x)
resultat will be :
Summatio on numpy :
import numpy as np
x = [Link] ([1,10,15,30,55])
print (x[2]+x[3])
resultat will be :
Check Number of Dimensions
import numpy as np
a = [Link](42)
b = [Link]([1, 2, 3, 4, 5])
c = [Link]([[1, 2, 3], [4, 5, 6]])
d = [Link]([[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]])
print([Link])
print([Link])
print([Link])
print([Link])
resultat will be :
Numpy array filter :