What is whitespace?


#1

https://www.codecademy.com/courses/learn-python/lessons/python-syntax/exercises/whitespace?action=resume_content_item


#2

White space is any character that prints but is not visible.

space_character  =>  ' ' 

newline          =>  '\n'  

tab              =>  '    '

In other words, spaces between terms, spaces before lines (indentation) and hard returns (line brreaks).

def foo(bar):
    print 'foo' + bar

foo('bar')

#3

Got it ! Thanks .Have a nice day :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.