Question DSA-STR-0014
MediumWhat is the output of this code?
print(" ".join("hello world".split()[::-1]))
- A.
world hello
- B.
olleh dlrow
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
What is the output of this code?
print(" ".join("hello world".split()[::-1]))
world hello
olleh dlrow
Sign up free to see the answer and a step-by-step explanation.
hello world
dlrow olleh