80 char and proper commenting

This commit is contained in:
Vipul Sharma 2015-10-29 15:23:37 +05:30
parent a6eb459b61
commit cdd64ecee3

View File

@ -124,7 +124,8 @@ not False # => True
"This is a string"[0] # => 'T' "This is a string"[0] # => 'T'
#String formatting with % #String formatting with %
#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. #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' x = 'apple'
y = 'lemon' y = 'lemon'
z = "The items in the basket are %s and %s" % (x,y) z = "The items in the basket are %s and %s" % (x,y)