On Sun, Oct 27, 2013 at 4:31 PM, wrote:
> hello all,
>
> This has got me a tad bit confused I think. I am running 3.3.0 and I know
> that Python looks to group code together that is supposed to be in the same
> block. But the question is, where are the rules for this? For instance, if
> I t
On 27/10/2013 15:31, ajetrum...@gmail.com wrote:
hello all,
This has got me a tad bit confused I think. I am running 3.3.0 and I know that
Python looks to group code together that is supposed to be in the same block.
But the question is, where are the rules for this? For instance, if I type
On 27/10/2013 11:31 AM, ajetrum...@gmail.com wrote:
a=1;
if a==1: print(1)
else: print(0)
wait = input("press key")
You indent only subordinate statements.
You don't need a semi-colon unless it separates two statements on the
same line.
Your code:
a=1
if a==1:
print(1)
else:
print(0
hello all,
This has got me a tad bit confused I think. I am running 3.3.0 and I know that
Python looks to group code together that is supposed to be in the same block.
But the question is, where are the rules for this? For instance, if I type the
following in a PY file, it errors out and I d