diff options
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python.html.markdown b/python.html.markdown index 2b43c5fc..13cb25e3 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -124,7 +124,7 @@ not False # => True "This is a string"[0] # => 'T' #String formatting with % -#Even though the % string operator will be deprecated on Python 3.1 and removed +#Even though the % string operator will be deprecated on Python 3.1 and removed #later at some time, it may still be good to know how it works. x = 'apple' y = 'lemon' @@ -458,7 +458,7 @@ add(y=6, x=5) # Keyword arguments can arrive in any order. # You can define functions that take a variable number of -# positional args, which will be interpreted as a tuple if you do not use the * +# positional args, which will be interpreted as a tuple by using * def varargs(*args): return args @@ -466,7 +466,7 @@ varargs(1, 2, 3) # => (1, 2, 3) # You can define functions that take a variable number of -# keyword args, as well, which will be interpreted as a dict if you do not use ** +# keyword args, as well, which will be interpreted as a dict by using ** def keyword_args(**kwargs): return kwargs @@ -726,6 +726,7 @@ print say(say_please=True) # Can you buy me a beer? Please! I am poor :( * [Python Module of the Week](http://pymotw.com/2/) * [A Crash Course in Python for Scientists](http://nbviewer.ipython.org/5920182) * [First Steps With Python](https://realpython.com/learn/python-first-steps/) +* [Fullstack Python](https://www.fullstackpython.com/) ### Dead Tree |