Python What is the use of duck typing? No restriction on the type values that can be passed to a given method Less restriction on the type values that can be passed to a given method Makes the program code smaller More restriction on the type values that can be passed to a given method No restriction on the type values that can be passed to a given method Less restriction on the type values that can be passed to a given method Makes the program code smaller More restriction on the type values that can be passed to a given method ANSWER DOWNLOAD EXAMIANS APP
Python Why are local variable names beginning with an underscore discouraged in Python Programming? they confuse the interpreter they slow down execution they are used to indicate global variables they are used to indicate a private variables of a class they confuse the interpreter they slow down execution they are used to indicate global variables they are used to indicate a private variables of a class ANSWER DOWNLOAD EXAMIANS APP
Python To insert 5 to the third position in list1, we use which Python command? list1.insert(3, 5) list1.insert(2, 5) list1.add(3, 5) list1.append(3, 5) list1.insert(3, 5) list1.insert(2, 5) list1.add(3, 5) list1.append(3, 5) ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 0 4 2 1 0 4 2 1 ANSWER DOWNLOAD EXAMIANS APP
Python To add a new element to a list we use which Python command? list1.add(5) list1.addEnd(5) list1.addLast(5) list1.append(5) list1.add(5) list1.addEnd(5) list1.addLast(5) list1.append(5) ANSWER DOWNLOAD EXAMIANS APP
Python What data type is the object below in Python? L = [1, 23, 'hello', 1] list tuple dictionary array list tuple dictionary array ANSWER DOWNLOAD EXAMIANS APP