DEV Community

alternate print for python

privatecloudev on August 03, 2021

'
import sys
def sayHI(msg):
return msg

sys.stdin(sayHI("hello"))
alternative print command in pytho
'

Collapse
 
woshimbo profile image
Woshimbo

Been seeing stdin and stdout, but not quite sure of their functions. Trying to get to that point.

Going through tutorials and such now.

Would you happen to know much about the iOS platform and sandboxing?

Collapse
 
aheisleycook profile image
privatecloudev

yes

Collapse
 
aheisleycook profile image
privatecloudev

also i maintaiing a site for mu church that and ios is usual platofmr and safari

Thread Thread
 
woshimbo profile image
Woshimbo

Nice. Was looking in to how to add pygame or to use "snaps" from this tutorial, I'm using the iPhone and so I use the app called Pythonista.

It's talking about installing a shell to add the library by using pip afterwards. Not sure if that's bypassing the sandbox or what, pretty sure it is.

Have you messed with anything like that on iOS? Don't want to risk my phone by doing stuff that is the "unknown" if that makes sense.

It states that the shell runs indefinitely. (Been trying to learn cyber security, so that seems like a bad idea.)

Any insight would be appreciated, haha.

Thread Thread
 
aheisleycook profile image
privatecloudev

usually that means a termnim conslle but that becomes tricky apple.stackexchange.com/questions/...
for-ios
you would need to have an app the gets file acces and that is messy business when i comes to apple wich jaillbreaking but jailbrkaing void the warrantly which doing all you aks easier on android evne th youd ont have one. short explainaiton you would an app that simulates root acces without jailbrekaign it

Thread Thread
 
aheisleycook profile image
privatecloudev

simpiler answer would need to simulate jailbroken ios phobe with on doing it for sonboxing