Question #882

What is the output of the code snippet below?
def my_function(an_int: int):
    return an_int * 2


Even though the function parameter type is annotated (the function is expecting to receive an int ), it doesn't mean that the argument has to be of this type. (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅

Similar questions: