DEV Community

privatecloudev
privatecloudev

Posted on

alternate print for python

'
import sys
def sayHI(msg):
return msg

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

Top comments (20)

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

Thread Thread
 
aheisleycook profile image
privatecloudev
Thread Thread
 
aheisleycook profile image
privatecloudev

mobile-security.gitbook.io/mobile-... looks like this might be the route for yoiu secuirity wise

Thread Thread
 
woshimbo profile image
Woshimbo

Appreciate it, I'll check it out.

Yeah, the other devices will come out eventually. Just trying to focus on one at a time for the time being. At least I will eventually get experience with each platform.

Already in way over my head, haha.

Thread Thread
 
aheisleycook profile image
privatecloudev

tutorialspoint.com/unix_commands/s... speaking of shell
bash might be good to knwo for shell programming if you ever wa t script anythig

Thread Thread
 
aheisleycook profile image
privatecloudev

also knowing sh and bash and c and python would acutally al,ow you to write your shell menu for your needs

Thread Thread
 
aheisleycook profile image
privatecloudev

consideting you ar saying ios platform you might want to learn swift and objective see to write your own terminal or xhell app and xcode tooin your case

Thread Thread
 
aheisleycook profile image
privatecloudev

you can do itin many hackys ways but kmowing langues usiedt make ios will give the tools t creat your soltuaiton

Thread Thread
 
woshimbo profile image
Woshimbo

Yeah, kind of learning all of this late in the game and actually just started learning about it all very recently.

All of those will eventually end up on the plate, haha.

Did you focus on one language at a time or worked on more at the same time?

Thread Thread
 
aheisleycook profile image
privatecloudev

one lanauge fora base then used what made sense with that i try nto sueleanr thigns that dont complete my stack

Thread Thread
 
aheisleycook profile image
privatecloudev

i wil say one language at a time works but the exception for another language or thing is if it work on fluild with what your leanring if ntot it wil cause issues elarnign boht like c# and visual bias are fine because theya re basicall the same ecoystme syntax and libirary and nameapce wise

 
aheisleycook profile image
privatecloudev

i will tell you if you want t eveg et hired as a dev having alot of years of experice and khow hw in one language can help you many job posts ask for al least 4 year fo experice in a languae i see alot of pyotohn and php and c++ and java and js and pi requirment on indeed

Thread Thread
 
woshimbo profile image
Woshimbo

The plan is to gain that experience within a much shorter time, so sticking to one may be best for now.

Yeah, from just randomly remembering stuff seen I kept trying to use statements meant for other languages in Python.

Not sure if a job in that sense is wanted, just kind of trying to do my own thing with game development, music, writing, and other things more security related.

Been listening to the darknet podcast and it's interesting, haha. Not really sure, I feel lost a lot. Just feels like the right path though, y'know?

The ideas and concepts are there, even designs to a point. Just the development part is missing, plus a lot of testing of course.

Thread Thread
 
aheisleycook profile image
privatecloudev

you might want to look at qualiy assuract for anohte side fot it it focus tesitng and finding and reporting thme bugs to be fixed

Thread Thread
 
aheisleycook profile image
privatecloudev