24th Mar 2023, 3:44 PM
Sachin
Sachin - avatar
2 Answers
+ 4
It works fine. Just remember that sololearn Python playground is not interactive and we need to provide all input separated by line breaks in the beginning. (Read the text in the pop-up window.)
24th Mar 2023, 3:53 PM
Lisa
Lisa - avatar
+ 2
Use one input line for both name and age. Try splitting that string into an array and work with the data like that. The playground only takes a single input. You'll have to split the inputs by space or a delimiter.
24th Mar 2023, 3:53 PM
William Mabotja
William Mabotja - avatar