diff options
| author | Zachary Ferguson <zfergus2@users.noreply.github.com> | 2015-10-04 19:58:14 -0400 | 
|---|---|---|
| committer | Zachary Ferguson <zfergus2@users.noreply.github.com> | 2015-10-04 19:58:14 -0400 | 
| commit | 52253720456acfef35cbbcf1ea1b3d98816c0961 (patch) | |
| tree | f309d0c77d0542b7b4fcef81617b62bff8c2262c /python3.html.markdown | |
| parent | 7184d7b61d99d2de93e19edb129ea3d17809be7f (diff) | |
Fixed whitespaces
Fixed the spacing to conform with standards.
Diffstat (limited to 'python3.html.markdown')
| -rw-r--r-- | python3.html.markdown | 11 | 
1 files changed, 5 insertions, 6 deletions
| diff --git a/python3.html.markdown b/python3.html.markdown index d70c5462..7b6edae7 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -4,7 +4,7 @@ contributors:      - ["Louie Dinh", "http://pythonpracticeprojects.com"]      - ["Steven Basart", "http://github.com/xksteven"]      - ["Andre Polykanine", "https://github.com/Oire"] -	- ["Zachary Ferguson", "http://github.com/zfergus2"] +    - ["Zachary Ferguson", "http://github.com/zfergus2"]  filename: learnpython3.py  --- @@ -158,7 +158,7 @@ print("I'm Python. Nice to meet you!")  # By default the print function also prints out a newline at the end.  # Use the optional argument end to change the end character. -print("I'm Python. Nice to meet you!", end="") +print("Hello, World", end="!") # => Hello, World!  # No need to declare variables before assigning to them.  # Convention is to use lower_case_with_underscores @@ -501,10 +501,9 @@ all_the_args(*args, **kwargs)   # equivalent to foo(1, 2, 3, 4, a=3, b=4)  # Returning multiple values (with tuple assignments)  def swap(x, y): -	return y, x   # Return multiple values as a tuple -				  # (Note: parenthesis have been excluded but can be included) -#   return (y, x) # Just as valid as the above example. -	 +    return y, x # Return multiple values as a tuple without the parenthesis. +                # (Note: parenthesis have been excluded but can be included) +  x = 1  y = 2  x, y = swap(x, y) # => x = 2, y = 1 | 
