Is it a list?
li=(10,'Abekus',20)
Output of following statements
complex(5,-4)
What is called when a function is defined inside a class?
Retrieving objects from the stored string form is called ______.
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
What will be the output of the following Python code?
>>> a=[14,52,7]
>>>> b=a.copy()
>>> b is a
>>> try:
... raise KeyboardInterrupt
... finally:
... print('Goodbye, world!')
def test_var_args(param1, **kwargs):
print (type(kwargs))
test_var_args('capitals', India='New Delhi',
Australia='Canberra', China='Beijing')
What will be the output of the following Python code snippet?
my_string = "hello world"
k = [(i.upper(), len(i)) for i in my_string]
print(k)