list1.remove("hello")
list1.remove(hello)
list1.removeAll("hello")
list1.removeOne ("hello")
['llo']
['hello']
['h', 'e', l', 'l', 'o']
None of the above
length
length()
len()
None
d.size()
len(d)
size(d)
d.len ()
In Python, a tuple can contain only integers as its elements.
In Python, a tuple can contain only strings as its elements.
In Python, a tuple can contain both integers and strings as its elements.
In Python, a tuple can contain either string or integer but not both at a time.
String
List
Tuple
Dictionary
indexing
Replication
concatenation
None of the Above
Concatenation
Membership
Slicing
All of the above
slicer
None of these-
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned
none of the mentioned.
islower()
isupper()
Islower()
str1[ : : -1 ]
str1[ : : 1 ]
str1[ : -1 : -1 ]
find()
copy()
upper()
capitalize()
arr[-2]
arr[2]
arr[-1]
arr[1]
space
colon
semi colon
index()
Both of the above
What will be the output of the following code ?
st='abcdefg' print(st[2:5])
'cde'
'abc'
'efg'
None of these
what will the output of following code
my_string="Hello,world" print(my_string[-6:-1])
,worl
worl
world
oworld