mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
80 char and proper commenting
This commit is contained in:
parent
a6eb459b61
commit
cdd64ecee3
@ -124,7 +124,8 @@ 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 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'
|
||||
y = 'lemon'
|
||||
z = "The items in the basket are %s and %s" % (x,y)
|
||||
|
Loading…
Reference in New Issue
Block a user