recently they have asked me in a interview and told me not to use any loop , inbuilt function so I have used this high order function and solution is l1=[1,2,3] l2=[4,5,6] l3=[7,8,9] #output=[12,15,18] result=list(map(lambda x,y,z:x+y+z,l1,l2,l3)) print(result)
As you said - "If stop value is not found then the output will be null" so if I print - print(name[2:100:1], then the output will be "antanu" in this case, it will start from index 2 and will keep on searching for 100, python will fail to get index 100 so it should'nt print any result right???
Hi, I'm following your interview playlist. It's very good and you clear all the concepts. Thank you ✌️❤ If you could post one video on "Creating different star patterns in python and also include some character patterns like :" A B C D A B C A B A or some complex star patterns that would be helpful. It's a request. Most of the time you post question from comment section. I hope you'll do for this request too.
I am planning to create a playlist on pattern programs as it is mostly asked in interviews. But, I am not getting much time from current topics. I will start working on this as soon as possible. thank you for comment!
3:10 How the Modulo work** It follows below points: 1. The result is always depend on the sign of Denominator. 2. There is no fuss if the Dividend is complely divisible with divisor (eg. 4%2), the result will always be 0(Zero). 3. Real fuss happens when the Dividend is not complely divisible with divisor. Eg 1.( 7%-2) Result = A - (A//B) * B i.e 7 - (7//-2)*(-2) = 7 - (-4) * (-2) = 7 - 8 = -1 is the answer! & 7//-2 = -3.5 which is negative floor value = (-4) Eg 2. ( -7%2) Result = A - (A//B) * B i.e -7 - (-7//2)*(2) = -7 - (-4) * (2) = -7 + 8 = 1 Remember Rule #1, result is always depend on the sign of Denominator. Hence, (-1 is the answer!)
Sir aapke logics itne strong kaise he, aap har question ke pechhe kya strategy followed krte he, please btaiyye, mujhe bhi aapke jaise strong logic krna he,mujhe question solve krne me kaafi time lgta he aap har question ko itne easily kaise solve kr lete he please, btaiyye mujhe, aur aapki initial journey kaisi thiii, i mean aap kya starting se hi coding me pro theee, ya hmare jaisi hi dhere -2 solve krte theee, please mujhe sab battein aaapke baare me jannna he, me kaafi pareshaan ho chuka hu mere logics jaldi bnte nhi, kya karu, please meri kuchh help kr dijiye sir 😓😓😭😭
@Code-yug a=[1,4,7] b=[2,5,8] c=[3,6,9] print(list(zip(a,b,c))) output will be---> [(1,2,3),(4,5,6),(7,8,9)] and the desired output is [(1,4,7),(2,5,8),(3,6,9)] can be obtained by: l=[] l.append(tuple(a)) l.append(tuple(b)) l.append(tuple(c)) print(l) Thanx for the video, helped a lot 😍❤
Your explanation of the zip function is incorrect .Jo dikh raha hai image mein wo kaam waise nahi karta hai ..Otherwise things are good and fine .Its not taking a , b and c lists individually .Rather its taking the first element of a,b,c then 2nd element of a,b,c and so on
@@Codeyug Check at 15:55 .The Given input doesnt generate the out given output .The given input upon applying the zip function results in [(1, 2, 3), (4, 5, 6), (7, 8, 9)] list ... and not [(1,4,7),(2,5,8) , (3,6,9) ] as you have shown .. Small error.only in the image .
Master in Python :- ruclips.net/p/PLI4OVrCFuY543naNBsCaRLrLSxI7MUOzZ
recently they have asked me in a interview and told me not to use any loop , inbuilt function so I have used this high order function and solution is
l1=[1,2,3]
l2=[4,5,6]
l3=[7,8,9]
#output=[12,15,18]
result=list(map(lambda x,y,z:x+y+z,l1,l2,l3))
print(result)
Great!
We can also use ''' ''' for printing that statment
Appreciate your effort for these kind of videos. Thanks it was really helpful.
But in last question input and output are different.
Yeah.. Small mistake happened in last. I didn't check input properly...
As you said - "If stop value is not found then the output will be null"
so if I print - print(name[2:100:1], then the output will be "antanu"
in this case, it will start from index 2 and will keep on searching for 100, python will fail to get index 100 so it should'nt print any result right???
It prints then till index
Nope. If arg for step(third arg) is negative it needs to have the starting ending which is 8 which is out of bounds. Hence empty string.
Very informative, Good👍
Hi,
I'm following your interview playlist. It's very good and you clear all the concepts. Thank you ✌️❤
If you could post one video on "Creating different star patterns in python and also include some character patterns like :"
A B C D
A B C
A B
A
or some complex star patterns that would be helpful. It's a request. Most of the time you post question from comment section. I hope you'll do for this request too.
I am planning to create a playlist on pattern programs as it is mostly asked in interviews. But, I am not getting much time from current topics. I will start working on this as soon as possible. thank you for comment!
no.5-- u can use '''quote it will work
Just use print(repr(those long string with """))
3:10
How the Modulo work**
It follows below points:
1. The result is always depend on the sign of Denominator.
2. There is no fuss if the Dividend is complely divisible with divisor (eg. 4%2), the result will always be 0(Zero).
3. Real fuss happens when the Dividend is not complely divisible with divisor.
Eg 1.( 7%-2)
Result = A - (A//B) * B
i.e 7 - (7//-2)*(-2)
= 7 - (-4) * (-2)
= 7 - 8
= -1 is the answer!
& 7//-2 = -3.5 which is negative floor value = (-4)
Eg 2. ( -7%2)
Result = A - (A//B) * B
i.e -7 - (-7//2)*(2)
= -7 - (-4) * (2)
= -7 + 8
= 1
Remember Rule #1, result is always depend on the sign of Denominator.
Hence, (-1 is the answer!)
Thanks for this good explanation
Thanks for comment
Sir aapke logics itne strong kaise he, aap har question ke pechhe kya strategy followed krte he, please btaiyye, mujhe bhi aapke jaise strong logic krna he,mujhe question solve krne me kaafi time lgta he aap har question ko itne easily kaise solve kr lete he please, btaiyye mujhe, aur aapki initial journey kaisi thiii, i mean aap kya starting se hi coding me pro theee, ya hmare jaisi hi dhere -2 solve krte theee, please mujhe sab battein aaapke baare me jannna he, me kaafi pareshaan ho chuka hu mere logics jaldi bnte nhi, kya karu, please meri kuchh help kr dijiye sir 😓😓😭😭
It's about practice and mee concepts dimag me ekdam clear hai
@@Codeyug Thank You Sir 😇
print('''"""conversation - He said,"Shantanu's explanation is very good" and I subscribed channel"""''')
thanks yar ye trick jyada achha h aapka
How many years of experience do you have in IT?
print("\"\"\"conversation - He said, \"Shantanu's explanation is very good\" and I subscribed channel\"\"\"")
Thanks and welcome
perfect! thank u
Thanks and please do share
can you suggest me best tutorial for statistics on you tube (for Data science course).?
Let me check..
there are courses on udemy with 'statistics for data science'. Could you please check..
@@Codeyug okkk thankyou so much 😊
Thanks Sir
Welcome
very great//sir thank you
Please check playlists section
@Code-yug
a=[1,4,7]
b=[2,5,8]
c=[3,6,9]
print(list(zip(a,b,c)))
output will be---> [(1,2,3),(4,5,6),(7,8,9)]
and the desired output is [(1,4,7),(2,5,8),(3,6,9)]
can be obtained by:
l=[]
l.append(tuple(a))
l.append(tuple(b))
l.append(tuple(c))
print(l)
Thanx for the video, helped a lot 😍❤
Thank you for the comment. Please have a look in playlist section
bro before he shows the answer i literally did same as you did in 2nd one.. i dont understand what zip will do in
first solution
Thank you
Please do share!
Sir
Can share tutorial link
ruclips.net/p/PLI4OVrCFuY5725OhoRi-G2YwnjKXh7v0F
The last question : a= [1,4,7] and not a=[1,2,3] . So you solution will not give the desired output
print('\"python uses \
for newline"')
3no. qn...wahan ' quote nehin he apporstrophe
a = """ \"\"\" conversation - He said, \"shantanu\'s explaination
is very good\" and i subscribed channel\"\"\" """
print(a)
Thanks and please do share
zip function expalnation is wrong
Please tell me
these are 9 questions
Chalta hai ab😅
Last ans wrong hai
I got it..thanks!
Your explanation of the zip function is incorrect .Jo dikh raha hai image mein wo kaam waise nahi karta hai ..Otherwise things are good and fine .Its not taking a , b and c lists individually .Rather its taking the first element of a,b,c then 2nd element of a,b,c and so on
whats wrong?
@@Codeyug Check at 15:55 .The Given input doesnt generate the out given output .The given input upon applying the zip function results in
[(1, 2, 3), (4, 5, 6), (7, 8, 9)] list ... and not [(1,4,7),(2,5,8) , (3,6,9) ] as you have shown .. Small error.only in the image .
😅@@sandeepdash5652
Lo sede eddange edyala guru
Mean?
@@Codeyug look at 10th question..
U have mentioned something u written something
Okay will correct that Or edit