Python developer Interview Questions | Glassdoor.co.in

# Python developer Interview Questions

667

python developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Python Developer at WebKul was asked...

26 May 2019
 First Round: Write a pattern 1: Should accept only odd numbers numbers only except 2: Pattern should be fully Dynamic for n =1 @@@@@ * ** *** **** ***** ****** ***** **** *** ** * @@@@@ Second Round:n=6 * ** *** **** ****** ****** ***** **** *** ** *7 Answersnum = int(input()) for i in range(num): print('@',end="") for i in range(num+2): for j in range(i): print("*",end="") print() for i in range(num,0,-1): for j in range(i): print("*",end="") print() for i in range(num): print('@',end="")num = int(input()) for i in range(num): for j in range(num): print(" ",end=" ") for j in range(num-i): print(" ",end="") for j in range(i+1): print("*",end=" ") print() for i in range(num,0,-1): for j in range(num-i+1): print(" ",end="") for j in range(i): print("*",end=" ") print()with less loops n=int(input()) print(n*"@") for i in range(1,n+2): for j in range(i): print("*",end="") print("") for i in range(n,0,-1): for j in range(i): print("*",end="") print("") print(n*"@")Show more responsesn=int(input()) right=n-1 spaces=4*n-right-2 for i in range(1,n+1): print(spaces*' ',end='') print(i*"* ",end='') print(right*" ") spaces-=1 right-=1 spaces,right=0,0 for i in range(n,0,-1): print(spaces*' ',end='') print(i*"* ",end='') print(right*" ") spaces+=1 right+=1n = 5 m=4 for i in range(n): print('@',end="") print() for i in range(n): print("*"*(i+1)) for i in range(m): print('*'*(m-i)) for i in range(n): print("@",end="")#less loops and very easy def fun(number): at_rate="@"*number print(at_rate) for x in range(number,-(number+1),-1): for y in range(number,abs(x)-1,-1): print("*",end="") print(" ") print(at_rate) fun(6)def fun(number): for x in range(number): for y in range(x,number*2+3): print("",end=" ") for z in range(0,x+1): print("*",end=" ") print("") for x in range(number,0,-1): for y in range(number,x,-1): print("",end=" ") for z in range(number,number-x,-1): print("*",end=" ") print() fun(5)

### Python/Django Developer at WebKul was asked...

24 May 2018
 # n=3 * * * @ * @ * @ * * * #n=5 * * * @ * * * @ * * * @ * * * @ * * * @ * * * somewhat similar to these ! 5 AnswersI was only able to do this : * * * @ * * * @ * * @ * @Please elaborate your question.. How question pattern looks like. It's seems in single line and you printed in multiple lines... thank-youn = int(input("num")) print("* " ) print("* ", end="") print("* ", end="") print("@ ", end="") print("\n") for i in range(n-2, 0, -1): m = n-1-i for j in range(i): print("* " , end="") print("@ ", end="") for k in range(m): print("* ",end="") print("\n") print(" ", end="") print(" ", end="") print("@ ", end="") print("* ", end="") print("* ") for m in range(5): if m<4: print(" ", end="") else: print("* ")Show more responseshow many pattern question and time they give??import java.util.Scanner; class Pattern6 { void print1(int n) { int l=n-2; for(int j=0;j<=n-2;j++) { for(int i=0;i

### Python Developer at Soroco was asked...

22 Oct 2020
 question on list ,sets and dictionary 4 AnswersI have used built in methods and listWhat were the questions about in the online test and face to face roundFace to face they ask related to DS alShow more responsesdo you remember questions asked in online hackerrank test

### Python Developer at Fluid AI was asked...

23 Aug 2018
 Write a Program to print sum of even numbers which is divisible by 8:- 4 AnswersYou had to perform coding test on machine?what was the question in your Hackathon round?Share the questions of hackathon round plzShow more responsesIt will. Be great help if someone can update here questions of Hackathon Or round 3 . Thanks!

28 Jul 2015

### Python Developer at L&T Technology Services was asked...

13 Jul 2019
 Palindrome2 AnswersPolindrom is nothing but string. input string is reversed we will get same string as output order of the characters also same. Take a string with name 's' and take reversed string of that string 's' os'rev_s' . And apply some of condition like " if s==rev_s: " then the given string is polindromExample :- a="malayalam" b=(a[::-1]) if list (a)==list(b) print("This is a polindrom") else: print("This is a not polindrom") output = This is a polindrom

### Python Developer at Fluid AI was asked...

7 May 2019
 Print odd numbers as it is and double the even numbers. Where do you see yourself in 5 years? Why this job? Project Based Questions2 AnswersCan you share questions of hackathon or 3rd round?It will. Be great help if someone can update here questions of Hackathon Or round 3 . Thanks!

### Python Developer at Fluid AI was asked...

28 Sep 2019
 the sum of 100 numbers divisible by 2 but not 8(pen-paper questin)2 AnswersIt will. Be great help if someone can update here questions of Hackathon Or round 3 . Thanks!it won't matter what is the question in round 3 since you have the internet to help you. for me the question was to read some data on the link and sort it in ascending order

### Systems Developer/Python Developer at Senvion was asked...

27 Nov 2018
 Technical test ? 3hours test2 AnswersGoodOnce u will join u will know the reality

### Python Developer at Merit Group was asked...

26 Jan 2020
 What is your Experience in Web Scrapping?2 AnswersIn spite of the invite which they mentioned zero experience is fine, they allowed candidates only who have experience in Web scraping tools. Please don't waste your precious time by applying to this company because even after the incident they keep on sending the invite in naukiri, totally irresponsible replies from HR - ShaliniHi, Thank you for your feedback. We will speak to the concerned recruiters regarding this and see where the gap is. We strive to provide an enriching experience to candidates irrespective of the result and believe that candidates should enjoy the interview process. Thank you for taking time in attending the interview and also providing this feedback.
110 of 667 Interview Questions