0% found this document useful (0 votes)
25 views1 page

Task List: Python Challenging Questions For Entry Level Job

A Python entry-level job posting includes 3 coding challenges: 1) Write a function to sort a list of strings from stdin by length. 2) Write a function that takes 2 integers m and n, encodes them to characters using a cipher where numbers represent letters, and prints the results. 3) Write a function that takes an integer, finds all its factors greater than 1, and prints whether it is prime.

Uploaded by

Diksha Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Task List: Python Challenging Questions For Entry Level Job

A Python entry-level job posting includes 3 coding challenges: 1) Write a function to sort a list of strings from stdin by length. 2) Write a function that takes 2 integers m and n, encodes them to characters using a cipher where numbers represent letters, and prints the results. 3) Write a function that takes an integer, finds all its factors greater than 1, and prints whether it is prime.

Uploaded by

Diksha Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PYTHON CHALLENGING QUESTIONS FOR ENTRY

LEVEL JOB

Task List
❖ Write a function that accepts a list of strings from stdin, and sorts it based on length of
those strings. The output is the sorted list of strings.

❖ Assuming the following cipher: 1=A, 2=B, 3=C,...,26=Z,27=AA, 28=AB, … write a python
function which takes two integers m and n (1 < m < n < 676) and prints the character
equivalents of each in a new line. For eg. if the input was m=25 and n=29, it will output:
➢ Y
➢ Z
➢ AA
➢ AB
➢ AC
❖ Write a factorisation function which accepts an integer (less than 100000) and prints all its
factors greater than 1. It should also print whether a number is prime; if so.

You might also like