Re: [Tutor] Problem with if statements and else statements

2017-05-27 Thread boB Stepp
Hello Jalen! On Sat, May 27, 2017 at 4:19 PM, Jalen Barr wrote: > > In this code it always changes the PlaceHolder to 0 no matter what Month is > set to > > Month ="September" > > if Month == "January" or "1": > PlaceHolder = 0 This must be written as: if Month == "January" or Month == "1":

Re: [Tutor] Problem with if statements and else statements

2017-05-27 Thread Jalen Barr
I am in Python version 3.6.1 On Sat, May 27, 2017 at 4:19 PM, Jalen Barr wrote: > In this code it always changes the PlaceHolder to 0 no matter what Month > is set to > > Month ="September" > > if Month == "January" or "1": > PlaceHolder = 0 > else: > print("Information Error") > print(P

[Tutor] Problem with if statements and else statements

2017-05-27 Thread Jalen Barr
In this code it always changes the PlaceHolder to 0 no matter what Month is set to Month ="September" if Month == "January" or "1": PlaceHolder = 0 else: print("Information Error") print(PlaceHolder) ___ Tutor maillist - Tutor@python.org To un

Re: [Tutor] How to deploy seamless script updates to your "clients"?

2017-05-27 Thread M Hashmi
That's where Git or other version control systems come in. You can edit or upgrade creating a branch and when a branch tested at your side. You can push it with new tag like "some module changed". I guess this is how it works for everyone. All your team will get replicated code once you merge branc

Re: [Tutor] airflow dag

2017-05-27 Thread Cameron Simpson
On 25May2017 18:02, Alan Gauld wrote: On 25/05/17 13:15, shubham goyal wrote: I want to ask that can we pass the parameters as commandline arguments in airflow when we are triggering the dag and access them inside the dag's python script/file. I've no idea what a dag is. It's a directed acy