Level 10 : What does this code print?
lst = [1, 2, 3, 4]
result = [i for i in lst if lst.index(i) % 2 == 0]
print(result)
while-else-loop
|
method
|
built-in-function
|
asyncio
|
math
|
parameter
|
lambdas
|
data-structure
|
constructor
|
immutability
|
shallow-copy
|
syntax
|
multithreading
|
higher-order-function
|
int
|
print
|
call
|
mathematics
|
enumerate()
|
binary-operation
|
async
|
split
|
feature
|
error
|
decorator
|
file-handling
|
string-formatting
|
statement
|
assignment-operator
|
comprehension
|
encapsulation
|
nested-loop
|
decimal
|
touples
|
condition
|
regular-expression
|
class-and-inheritance
|
escape-operator
|
boolean-and-non-boolean
|
lists
|
map-function
|
frozenset
|
memory
|
formal-and-actual-parameter
|
lambda-function
|
destructor
|
generator
|
arithmetic-expression
|
collection
|
datatype
|
version-check
|
while-and-for-loop
|
random-function
|
postfix
|
__future__
|
factorial-function
|
else-statement
|
import-method
|
methods
|
pseudocode
|
loop-control
|
operator
|
threading
|
global
|
access-modifier
|
yield
|
oops
|
conversion
|
file
|
exception-handling
|
class-and-instance-variable
|
inherit
|
data-type
|
operations
|
rollback
|
list-operation
|
mathematical-function
|
numeric
|
compute
|
string-slicing
|
software-design
|
__init_subclass__
|
expand-tab
|
installation
|
identity-operator
|
library
|
syntax-error
|
for
|
counter-function
|
recurssion
|
object-attribute
|
loop
|
interpreter
|
match
|
implementation
|
matplotlib
|
sorted
|
turtle
|
virtual-environment
|
data_structure
|
string-formatting
|
immutable-data-type
|
type-conversion
|
sorting
|
precedence-and-associativity
|
pickling-&-unpickling
|
input-function
|
stack
|
string-slicing
|
scientific-notation
|
list-indexing
|
name-mangling
|
swapping
|
odd-number
|
lambda
|
application
|
raise
|
generators-in-python
|
module
|
control-flow
|
global-variable
|
with-statement
|
gil
|
keyword
|
namespace
|
list
|
math-copysign
|
dictionary
|
assert
|
mapping-function
|
zip
|
control-flow
|
collections
|
class
|
indexing
|
tuple
|
iterator
|
array
|
sum()
|
filter-function
|
max-min
|
attribute
|
inheritance
|
set-operation
|
matrix
|
type_conversion
|
__all__-attribute
|
python-module
|
indentation
|
exception-handling
|
syntaxerror
|
dictionaries
|
string-concatenation
|
data-structure
|
default-mutable-argument
|
operand
|
global-keyword
|
conditional-statement
|
virtual-environment
|
control-statement
|
overflow
|
functions
|
slice
|
head-and-tail
|
built-in-function
|
file-handling
|
tuple-unpacking
|
design-principle
|
sys-module
|
dicts
|
list-comprehension
|
min-max-function
|
boolean
|
operator-overloading
|
type-conversion
|
sum-function
|
operator-or
|
precedence
|
while-loop
|
debugging
|
version
|
format
|
python-history
|
conditional-statement
|
error-handling
|
expression
|
id-function
|
string-iteration
|
list-comprehension
|
set
|
logical-operator
|
slicing
|
datetime
|
namedtuple
|
string-method
|
filter
|
operator-and
|
join
|
matrix-list-comprehension
|
arithmetic-operation
|
identifier
|
copy
|
loops
|
center
|
function-and-scope
|
generators
|
floating-point-precision
|
asyncio-module
|
data-structures
|
list-mutation
|
round-function
|
identity-operator
|
list-slicing
|
zip-function
|
min-function
|
random
|
choice
|
class-and-object
|
mutable
|
fabs-function
|
range
|
return-statement
|
string-manipulation
|
python
|
init
|
staticmethod
|
file_handling
|
python-repl
|
input
|
goto-function
|
static-method
|
multiprocessing
|
bitwise-operator
|
functional-programming
|
bitwise-operator
|
print-statement
|
update
|
encoding
|
benefit
|
docstring
|
complex-number
|
counter
|
pandas
|
oop
|
descriptors
|
complex
|
global-variable
|
integer
|
list-join
|
logical-operator
|
input-function
|
string-method
|
heap-memory
|
python-django
|
string
|
mysql
|
basic
|
memory-management
|
exception
|
round
|
exponentiation
|
list-vs-tuple
|
bitwise
|
typeerror
|
function
|
numpy
|
function-argument
|
magic-method
|
sys
|
recursion
|
append
|
comparison
|
python_version
|
iterable
|
built-in
|
thread
|
multiple-inheritance
|
data-type
|
regex
|
operators
|
classes
|
deep-copy
|
variable
|
syntax-error
|
command-line-parsing
|
objects
|
invalid-list
|
def
|
package-management
|
zfill-function
|
binary
|
list-method
|
logical-operation
|
polymorphism
|
context-manager
|
pep
|
comment
...