I was given a code example and asked to explain what was wrong with it.
Python Engineer Interview Questions
6,405 python engineer interview questions shared by candidates
Simpe data structures and algorithms questions.
Q1.What is global interpreter lock? Q2.# Write a Python program that takes a list of integers and returns a new list with each integer squared. However, if the squared value is greater than 50, replace it with the string 'Over 50'. The program should handle any exceptions that may arise from incorrect inputs gracefully without using inbuilt functions. # input_numbers = [1, 7, 8, 4, 'a', 3] # Output - [1, 49, 'Over 50', 16, 'Invalid input: Not an integer', 9] Q3.# Given a string, find non-repeating character in it and return its index. If it doesn't exist, return -1. # input='leetcode # output=['l','t','c','o','d']
Write an SQL query to find out the name of an employee whose job title is manager.
You need to read a given CSV file from the source folder, convert the date to a date and time format, and save the CSV in the destination folder.
Q. From the source path, copy and move the file to the destination path. Handle the exception if a file or folder is not present.
Concepts in python like arrays, list, tuples, libraries, string
Python _tuples ,sets, arrays, dictionaries, lists
About past project details and technologies used
In interviews for the Python High-Tech Developer role at Capgemini, asked to implement basic Python programs. For example, to write a simple Python code to generate the Fibonacci series or to convert a nested list into a plain list.
Viewing 5261 - 5270 interview questions