Abschnitt 1. Kapitel 16
single
Challenge: Reverse Words in a Sentence
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write a function that reverses the order of words in a given sentence using a loop.
- The function must split the input sentence into words.
- The function must use a loop to reconstruct the sentence with the words in reverse order.
- The function must return the reversed sentence as a single string.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 16
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen