3 ms·
python, statement separator: not "sometimes", but "usually" python, multiline comment: not quite. print '''foo''' outputs "foo". This is a string literal, an
by Kwpolska 15y ago
python, statement separator: not "sometimes", but "usually"
python, multiline comment: not quite. print '''foo''' outputs "foo". This is a string literal, and """foo""" is more popular.
- smilliken 15y agoUnder variable interpolation, there is nothing listed for python, but the equivalent is this: count = 3 item = "ball" print('%(count)s %(item)ss' % locals())