Whitespace and Statements: Whitespace Means Right Space


#1

For Lesson 6, when I indent def spam (): in the whitespace tutorial, the code still works, why?


#2

@ajaxninja20403,
Your future will probably be, becoming a Code-Tester :sunglasses:


#3

I started working through python again starting all over after I got stuck 23% (haha) For lesson 6, the result is:
12
none

But how does it come from print spam ( ) to those 2 results "12" and "0" ?


#4

@delwynstf,
Doing a google search
== discussions / opinions ==
python why does python give a none site:stackoverflow.com
for instance
http://stackoverflow.com/questions/19105961/python-my-function-returns-none-after-the-it-does-what-i-want-it-to


#5

Thank you ! I'm on my way to have a look at it.


#6

I enter this on PyCharm and it does not even work, why is that?


#7

Maybe Pycharm uses a different Python? Python 3 vs Python 2.7.3?


#8

Why not teach in updated versions?


#9

Haha.....I think it takes time to update..I'm not sure if they are updating yet. It's just minor syntax things for what I see now (like different print statement syntax).


#10

Just saying, you want to stay on top of things. Lol