Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Jp here again [comment number 26]Thank you, Sir, :)
At 8:32 there is a mistake. It should be for x in range(100)
Okok bro itna to chalta hai
bhot tez ho rhe ho... hehehehenice concentration buddy!!!
Range for pythagorean triplets must be from 1 since side of triangle cant be zero
#the statement is not working l = [square(x) for i in range(100) if iseven(x)]Traceback (most recent call last): File "", line 1, in File "", line 1, in NameError: name 'x' is not definedi defined square and iseven functions
I got it , the statement should be l = [square(x) for x in range(100) if iseven(x)]
I feel things could have been explained with more depth in this video.
Watch some other video
also you can try for 3x3 matrixa=[0]*3b=[]for i in range(0,3): b.append(a)print(b)
u mad bro? this will create duplicate lists and all the list will point to a so not a good way to initialize this way
Or you can also doa=[0]*3b=[a]*3print(b)But I think the one shown in the video is better because it does the same thing in one line
Python is really good dude I mean it provides methods like maps, comprehensions !!! wow
Ya even I was impressed with list comprehension!
@@lakshman587 me2
@@karthikreddygaddam3104 Tommorow is the online exam for me😁😁Are you also attending?
@@lakshman587 yes😁
How was the question for programming ??
Thanks
Jp here again [comment number 26]
Thank you, Sir, :)
At 8:32 there is a mistake. It should be for x in range(100)
Okok bro itna to chalta hai
bhot tez ho rhe ho... hehehehe
nice concentration buddy!!!
Range for pythagorean triplets must be from 1 since side of triangle cant be zero
#the statement is not working
l = [square(x) for i in range(100) if iseven(x)]
Traceback (most recent call last):
File "", line 1, in
File "", line 1, in
NameError: name 'x' is not defined
i defined square and iseven functions
I got it , the statement should be
l = [square(x) for x in range(100) if iseven(x)]
I feel things could have been explained with more depth in this video.
Watch some other video
also you can try for 3x3 matrix
a=[0]*3
b=[]
for i in range(0,3):
b.append(a)
print(b)
u mad bro? this will create duplicate lists and all the list will point to a so not a good way to initialize this way
Or you can also do
a=[0]*3
b=[a]*3
print(b)
But I think the one shown in the video is better because it does the same thing in one line
Python is really good dude I mean it provides methods like maps, comprehensions !!! wow
Ya even I was impressed with list comprehension!
@@lakshman587 me2
@@karthikreddygaddam3104 Tommorow is the online exam for me😁😁
Are you also attending?
@@lakshman587 yes😁
How was the question for programming ??
Thanks