Python Interview Questions and Answers | Tricky Questions | Python Interview Questions For Freshers

preview_player
Показать описание
Python Interview Questions and Answers | Tricky Questions | Python Interview Questions For Freshers
This video is a part of Python Interview Questions and Answers for Freshers series. In this video, I have explained 10 tricky questions of python with solution and proper explanation.

race condition video:-

source code :-

About Python Tutorial:- python for beginners-Go from Zero to Hero in python.This tutorial includes python programming videos from basics to advanced

More tutorials:-

About codeyug :-
Codeyug provides tutorials for building your programming skills.Here,you will learn various programming languages,computer science,web development with free of cost.

SHARE | SUBSCRIBE | LIKE
-- - - - - - - - - - - - - - - - - -Thanks for watching this video - - - - - - - - - - - - - - - - - -- -
Our social links:-
creator:-
$ -shantanu kejkar -$

#python #python3 #programming #codeyug #tutorial #coding #pythoninterview
Рекомендации по теме
Комментарии
Автор

print('''\"""conversation - He said, "Shantanu's explaination
is very good" and I subscribed channel''')

rykar
Автор

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)

SerendipitySage
Автор

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!)

mr.chauhan
Автор

no.5-- u can use '''quote it will work

Ahamsanatani
Автор

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???

bidhanry
Автор

We can also use ''' ''' for printing that statment

rushikeshpabalkar
Автор

Just use print(repr(those long string with """))

DhavalAhir
Автор

Appreciate your effort for these kind of videos. Thanks it was really helpful.
But in last question input and output are different.

shantanubiswas
Автор

n = 'shantanu'
print(n[2:8:-2])
ans: atn is wrong
output is nothing

shade_of_lub
Автор

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.

theraizadatalks
Автор

print('''"""conversation - He said, "Shantanu's explanation is very good" and I subscribed channel"""''')

shivafoods
Автор

How many years of experience do you have in IT?

palakjaiswal
Автор

@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 😍❤

kanishkbhatt
Автор

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 😓😓😭😭

sourabhmori
Автор

print("\"\"\"conversation - He said, \"Shantanu's explanation is very good\" and I subscribed channel\"\"\"")

seenusunny
Автор

can you suggest me best tutorial for statistics on you tube (for Data science course).?

anjalidhull
Автор

print('\"python uses \\n for newline"')

shivafoods
Автор

3no. qn...wahan ' quote nehin he apporstrophe

Ahamsanatani
Автор

The last question : a= [1, 4, 7] and not a=[1, 2, 3] . So you solution will not give the desired output

KaushikBiswas-jm
Автор

a = """ \"\"\" conversation - He said, \"shantanu\'s explaination
is very good\" and i subscribed channel\"\"\" """
print(a)

AnonamousUser