I haven't tried the iPad version of Sagemath yet, but I have a question about it.
On the online version of Sagemath (at cloud.sagemath.org), when programs or function have a call to input(..) or raw_input(..), it is NOT possible to receive user input. Try it--you'll keep getting an EOF error message.
However, I'd like to know if user input works on the iPad app version (and/or the Android app version)