Skip to content

Commit 978e796

Browse files
committed
Update README.md
Updated the document to replace 'TAB' with 'space'. Have noticed with python 3.4.1 tabs don't work.
1 parent b955d19 commit 978e796

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

python_introduction/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ Well... something went wrong here! Python needs to know whether the instruction
361361
...
362362
It works!
363363

364-
All you need is one space or `TAB` after `...`. To avoid chaos, most Python programmers use four spaces for each level of indentation.
364+
All you need is one space after `...`. To avoid chaos, most Python programmers use four spaces for each level of indentation.
365365

366366
Everything that is indented after the `if` statement will be executed if the condition is met. See:
367367

@@ -416,7 +416,7 @@ A function is a set of instructions that Python should execute. Each function in
416416
>>> def hi():
417417
...
418418

419-
As you can see, there are those dots again! This means that nothing has really happened yet... and yes, we need to press the `TAB` key before giving our instructions:
419+
As you can see, there are those dots again! This means that nothing has really happened yet... and yes, we need to press the `Space` key before giving our instructions:
420420

421421
>>> def hi():
422422
... print('Hi there!')
@@ -447,7 +447,7 @@ As you can see, we now gave our function a parameter that we called `name`:
447447
... print('Hi anonymous!')
448448
...
449449

450-
As you can see, we needed to put two tabs before the `print` function, because `if` needs to know what should happen when the condition is met. Let's see how it works now:
450+
As you can see, we needed to put two spaces before the `print` function, because `if` needs to know what should happen when the condition is met. Let's see how it works now:
451451

452452
>>> hi("Ola")
453453
Hi Ola!
@@ -486,7 +486,7 @@ We want to greet all of them by their name. We have the `hi` function to do that
486486
>>> for name in girls:
487487
...
488488

489-
Dots again! Remember what goes after the dots? Yes, a tab :)
489+
Dots again! Remember what goes after the dots? Yes, a space :)
490490

491491
>>> for name in girls:
492492
... hi(name)
@@ -503,7 +503,7 @@ Dots again! Remember what goes after the dots? Yes, a tab :)
503503
Hi You!
504504
Next girl
505505

506-
As you can see, everything you will put inside a `for` statement with `TAB` will be repeated for every element of the list `girls`.
506+
As you can see, everything you will put inside a `for` statement with space will be repeated for every element of the list `girls`.
507507

508508
You can also use `for` on numbers using the `range` method:
509509

0 commit comments

Comments
 (0)