What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
[1, 2, ‘hello’]
[1, 0, 2, ‘hello’, ”, []]
[1, 0, 2, 0, ‘hello’, ”, []]
Error
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Python expression if x=15 and y=12?
Solution |
2
Discuss
|
What will be the output of the following Python expression?
Solution |
3
Discuss
|
What will be the output of the following Python expression?
Solution |
4
Discuss
|
Which of the following represents the bitwise XOR operator?
Solution |
5
Discuss
|
What will be the value of the following Python expression?
Solution |
6
Discuss
|
What will be the output of the following Python code if a=10 and b =20?
Solution |
7
Discuss
|
What will be the output of the following Python expression?
Solution |
8
Discuss
|
Which of the following expressions results in an error?
Solution |
9
Discuss
|
Which of the following expressions involves coercion when evaluated in Python?
Solution |
10
Discuss
|
What will be the output of the following Python code snippet?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved