On Sun, Mar 6, 2011 at 12:00 PM, Noah Hall wrote:
> On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi
> wrote:
> > Ah. I thought I had to "return" something!
>
> Well, based on what you asked, you would've, but based on the code,
> all it was doing is printing "returnValue - value"
>
> Of course, a
On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi wrote:
> Ah. I thought I had to "return" something!
Well, based on what you asked, you would've, but based on the code,
all it was doing is printing "returnValue - value"
Of course, a better way of doing it would be to use formatting -
For example,
>How do I translate this PHP code?
>if($ok){
>echo "returnValue=1";
>}else{
>echo "returnValue=0";
>}
print("return value = "+str(ok));
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Mar 6, 2011 at 10:53 AM, Noah Hall wrote:
> On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi
> wrote:
> > Hi;
> > How do I translate this PHP code?
> >
> > if($ok){
> > echo "returnValue=1";
> > }else{
> > echo "returnValue=0";
> > }
>
> From the code provided -
>
> if ok:
>pri
On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi wrote:
> Hi;
> How do I translate this PHP code?
>
> if($ok){
> echo "returnValue=1";
> }else{
> echo "returnValue=0";
> }
>From the code provided -
if ok:
print 'returnValue=1'
else:
print 'returnValue=0'
--
http://mail.python.org/