code won't show in bash (python) -
i using python on mac , using python through wrangler , lot of stuff going wrong randomly think i'm doing wrong. have simple program , when run in bash on in terminal won't show up. code:
def shoes(): j= "jordans" a= "adidas" n= "nikes" question = input("whats ur fav. shoe?") if a: return
i access in bash this:
cd ~/desktop/scripts ls python shoe.py
then nothing shows up
add this:
if __name__=='__main__': shoes()
and if want show something, use print 123
or sys.stdout(123)
Comments
Post a Comment