What will be the output of the following Python expression?
4^12
What is the output of the following Python code?
>>>max("what are you")
import shutil
What is shutil used for ?
A mechanism to select a range of items from sequence types like list, tuple, strings, etc. is known as -------------.
Which of these about a frozenset is not true?
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
How can we convert an integer to a string?
If x=1234, select the correct way to convert x into a string.
myList = [1, 2, 3, 4, 5]
def func(x):
x.pop()
x.pop()
x.insert(-1, 0)
print ("Inside func():", x)
func(myList)
print ("After function call:", myList)