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 #192
I-love-Python
Interestingly enough, the join() function is a method of the string class, not the list class. (stackoverflow.com/questions/493819/why-is-it-string-joinl...)
Which code snippet will return the output below?
— The Python Quiz (@thepythonquiz) August 26, 2020
I-love-Python
my_list = ["I", "love", "Python"]
print(my_list.join("-"))
my_list = ["I", "love", "Python"]
print("-".join(my_list))#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: