Write a programExercise 3/4Basic10 XP
Two numbers reversed
Task
The input is one line with two whole numbers separated by a space. The program prints them in reverse order, separated by a comma and a space, and their sum on the next line.
For the input 3 8 the program prints:
8, 3
11
Examples
Input
3 8
Expected output
8, 3 11
After you submit, 4 hidden tests will also check your solution: two zeros, a negative number, a zero sum, extra spaces.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.