Hard
What is the output of the following code ?
def f(l):
for element in l:
print(element, end=" ")
else:
print("\nOops, something went wrong...")
f(list())
f([x for x in range(3)])
Author: ThéoStatus: PublishedQuestion passed 1762 times
Edit
16
Community EvaluationsNo one has reviewed this question yet, be the first!
3
Read a file in Python8
Start a HTTP server from the CLI with python7
What type is `function_a` in the following code ?9
Use the zip() function to iterate over two lists in parallel.4
Find the word 'lazy' in a sentence using Python3
What will be the result of the following code?30
Write a Python function that returns the factorial of a number.