Infytq Questions Solve
Infytq Question Pattern Section 1: Programming JAVA/Python 20 Questions 35 minutes time Section 2: Database 10 Questions 15 minutes time Section 3: Aptitude 10 Questions 10 minutes time Infytq Question Solve Read SQL Syntax
Infytq Question Pattern Section 1: Programming JAVA/Python 20 Questions 35 minutes time Section 2: Database 10 Questions 15 minutes time Section 3: Aptitude 10 Questions 10 minutes time Infytq Question Solve Read SQL Syntax
There are many ways of doing it-1. pop method – list.pop()2. remove method – list.remove(list[index])3. del function – del list[index]4. slicing – list[1:] Don’t know how to delete the first element in array in Python? Read: How to delete the first element in array in Python Here is an example for you Output: Explanation:Here, pop(0)
How to delete the first element in List in Python Read More »
There are many ways of doing it-1. pop method – list.pop()2. remove method – list.remove(list[index])3. del function – del list[index]4. slicing – list[1:] Here is an example for you Output: Explanation:Here, pop(0) pops the first element from the list.remove(b[0]) removes the element indexed at 0 i.e. the first element.del c[0] deletes the first element indexed
Python Array – How to delete the first element in array Read More »
Method 1:string to list character-wise syntax:list[:0] = string Don’t know how to convert a number to a list in Python? Read: How to convert a number to a list in Python Example 1: Output: Explanation:Here all the characters of the string are converted to elements in the list. Method 2:using split() Syntax:string.split(seperator) Example 1: Output:
There are various methods of taking multiple inputs in a single line. Method 1:using map() function syntax:variable = list(map(int, str(number))) Don’t know how to take multiple inputs in one line in Python? Read: How to take multiple inputs in one line / single line in Python Example 1: Output: Explanation:Here the numeric input has been
There are various methods of taking multiple inputs in a single line. Method 1: One of the method is split() method. This methods splits the input separated by separator. Syntax: input().split(separator) Example 1: Input: Output: Explanation: Here the two inputs are split into two integers and assigned to two variables (x, y). Example 2: Input:
How to take multiple inputs in one line / single line in Python Read More »
It is a function in tuple that returns True if all the items in the Tuple are True else returns False. 1 is considered as True and 0 is considered False. Syntax: all(itearable) Don’t know what is sum method in Python Tuple? Read: Python Tuple – sum() Method Example: Output: Explanation: Here all the items
It is a function in python that returns the Sum of the tuple. The tuple must contains numbers only and it returns a integer value. Syntax: sum(tuple, added) Note: added is the value that is added to the sum of the tuple. By default it is 0. Don’t know what is sorted method in Python
It is a method in tuple that returns a sorted list of the original tuple in ascending order by default. It returns a list. Syntax: sorted(iterable, key, reverse=True/Flase) Note: reverse=True will sort the tuple in descending order. Don’t know what is min method in Python Tuple? Read: Python Tuple – min() Method Example 1: Output: