print(14__4)
Fill the above blank to get 3 as a result.
Which of the following keywords is used in Python?
Which method is used to convert a list to a set?
Deduce the output of the following code:
def fun(n):
n += 1
return n
x = 4
y = fun(x + 2)
print(y)
Find the output of the following code:
x="Hello\nWorld"
print(x)
What is a type of multiple inheritance where you can combine behaviors and attributes of more than one parent class?
Which of the following is correct code for:
james-miller
Find the output of the following Python code:
for i in [1, 2, 3, 4, 5]:
if i == 3:
pass
print("\n", i)
print(i, end=" ")
What is the base case of a recursive function?
fp=open("txt.txt")
c=0
for i in fp:
if i.startswith("H"):
c+=1
print(c)
If the file txt.txt contains the following text then what is the output of the above code?
hello
World!! Hi
Hello