Python Developer Interview Questions | Glassdoor.co.in

# Python Developer Interview Questions

385

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

12 Oct 2016

### 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.

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

10 Jul 2018
 Question was to draw a star based pattern according to fibonacci series(1,1,2,3,5) eg. n=5 ***** ***** *** *** ** ** * * * 2 AnswersPlease elaborate your question.. what question pattern looks likenum = int(input()) prev = 1 next = 1 copy = num l = [] l.append(prev) l.append(next) while(num-2!=0): sum = prev + next prev = next next = sum num -=1 l.append(sum) s=0 for j in l[:-copy:-1]: print(s*' ' + j*'*' + ' ' + j*'*') s = s+j print(s*' ' + '*')

17 Oct 2015
 Python Qs: 1. Write Program to get the most frequency occurring in file? 2. Given a list and a number find two numbers in the list that sums up to the number given? 3. Write Program to print a tree in level order traversal? 4. Write a function that accept the file, count and return the exact occurrence of a word based on count? 5. List a=[ 1,2,3 none, none] list b=[4,5,3] Output=[1,4,2,5,3,3] ? Sql Qs: Given Employee & Department tables 1. Display ename,dname even if there no employees working in a particular department. 2. List out the lowest paid employees working under each manager, exclude any groups where minsal is less than 1000, sort the output by salary 3. Display the name of employee who earn Highest Salary 4. Display the employee Number and name for employee working as clerk and earning highest salary among the clerks. 5. Display the job groups having Total Salary greater than the maximum salary for Managers. 6. Display the names of employees from department number 10 with salary greater than that of ANY employee working in other departments. 7. Display those employees whose salary is greater than his managers salary. 8. Display the grade and employees name for the deptno 10 or 30 but grade is not 4 while joined the company before 31-DEC-82. 9. Display the Second maximum salary from the table using subquery. 10. Display those employees whose salary is less than his manager but more than salary of other managers. Excel Qs: Given Employee & Department tables 1. Count number of employees whose salary is greater than 20000 2. Get chemistry dept employees total salary 3. what are the use of charts - Pie chart, Bar chart, Line chart, Pivot table, Con(bar & live). 4. Given 2 tables. Fill sales column using HLookup.2 AnswersI did wrote a working code for all answers.was the first written test easy?? What were the questions asked

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

### 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 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
110 of 385 Interview Questions