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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -