Just as a note - you are not the only person caught out by this - it is a
very common slip.
I wonder whether it would be worth adding a more explicit line about this
in the Python Docs?
Matt
On Wed, 3 Feb 2016 16:13 Ek Esawi wrote:
> Hi All
>
>
>
>
>
> I have a code that reads a csv file via D
On 4 February 2016 at 06:45, Matt Williams wrote:
>
> Just as a note - you are not the only person caught out by this - it is a
> very common slip.
>
> I wonder whether it would be worth adding a more explicit line about this
> in the Python Docs?
Where in the docs would you put it and what would
On 4 February 2016 at 03:21, Ben Finney wrote:
> Alex Kleider writes:
>
>> How does a dict fit into this scheme?
>> Is it a sequence?
>
> No, a dict is not a sequence. But it is a container: all its items
> remain available and can be retrieved again and again, and you can
> interrogate whether a
Hi Dear!
I newbie and read 2.1.2. Interactive Mode
https://docs.python.org/3/tutorial/interpreter.html
but when I type
>>> the_world_is_flat = True
>>> if the_world_is_flat:
... print("Be careful not to fall off!")
I got answer
IndentationError: expected an indented block
[root@localhost /
Hello Alexander, and welcome!
My answers are below, between your questions (starting with > quote
marks).
On Thu, Feb 04, 2016 at 02:49:39PM +0200, Alexa kun wrote:
> Hi Dear!
> I newbie and read 2.1.2. Interactive Mode
> https://docs.python.org/3/tutorial/interpreter.html
>
> but when I type
On Thu, Feb 4, 2016 at 7:49 AM, Alexa kun wrote:
> Hi Dear!
> I newbie and read 2.1.2. Interactive Mode
> https://docs.python.org/3/tutorial/interpreter.html
>
> but when I type
>
> >>> the_world_is_flat = True
> >>> if the_world_is_flat:
> ... print("Be careful not to fall off!")
>
> I got a
On 04/02/16 12:49, Alexa kun wrote:
> Hi Dear!
Hi.
Can I ask that in future you choose a subject line that reflects your
question?
For this case it might be "IndentationError" say.
> but when I type
>
the_world_is_flat = True
if the_world_is_flat:
> ... print("Be careful not to fal
On Thu, Feb 4, 2016 at 2:49 PM, Alexa kun wrote:
> Hi Dear!
> I newbie and read 2.1.2. Interactive Mode
> https://docs.python.org/3/tutorial/interpreter.html
>
> but when I type
>
> >>> the_world_is_flat = True
> >>> if the_world_is_flat:
> ... print("Be careful not to fall off!")
>
> I got a
On 2016-02-04 01:46, Oscar Benjamin wrote:
You can see an explanation of the different collection terminology
here:
https://docs.python.org/2/library/collections.html#collections-abstract-base-classes
A dict is a Mapping and a set is a Set. Both also comes under the
categories Sized, Iterable
I am very new to Python. I am just practicing code using a simple plug board.
The code is working as I want it to but the last message and the original
looping makes me have questions. Because the main code works I will just
abbreviate it.
import GPIO
import time
Gpio setmode (BCM)
led_pin
On Thu, Feb 4, 2016 at 6:26 PM, Tom Brodle wrote:
> I am very new to Python. I am just practicing code using a simple plug
> board. The code is working as I want it to but the last message and the
> original looping makes me have questions. Because the main code works I
> will just abbreviate
On 04/02/16 23:26, Tom Brodle wrote:
> While true:
> Turn LED on
> sleep 5 seconds
> Turn LED off
> sleep .5 seconds
> # Coming from the world of Basic I did/do not understand what made the
> program loop
> # back to while True: line of c
12 matches
Mail list logo