The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #238
def return_hello():
return "hello!"
print(type(return_hello))
In the code snippet, return_hello is a function whilst return_hello() is a string. Functions are also objects in Python! (dbader.org/blog/python-first-class-functions#:~:text=Pyth...)
What is the type of return_hello in the code snippet below?
— The Python Quiz (@thepythonquiz) November 16, 2020
def return_hello():
return "hello!"
print(type(return_hello))
A function
A string#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅