Infytq Last Year Python Coding Question – Fully Solved Set 1

Infytq Last Year Python Coding Question: In this article, we will be discussing some important Infytq Last Year Python Coding Question which will help you guys to crack Infytq 2023 exam.

So, If you are also preparing for Infytq exam, Must prepare these questions.

Also check Infytq Detailed Exam Pattern, Click here

Infytq Python coding questions

Problem 1: Take input from user in the given format (consist of name and code), find max digit from Code which is less or equal to the length of String and put that place Char in final String if there is no any digit found which not satisfy the condition that simply put ‘X’.

Sample Input:

Abhishek:34848,Mayur:4739,Friends:2949,Yeah:9889

Sample Output:

kueX

Solution:


Problem 2: Find the place where the bracket doesn’t ends properly or the chain breaks.

Input Format: First line contains a single integer, the number of testcases n. Next n line contains a string consists of brackets.

Sample Input:

3
())
[][][
{{[]}}}

Sample Output:

3
6
7

Solution:

Leave a Reply

Your email address will not be published. Required fields are marked *