• 2022-06-11
    Which output of the following choices is correct
    A: print('{:5.3f}'.format(math.pi))
    3.1416
    B: 'Life is short, you need Python'. find('Life')
    1
    C: print('you' in 'Life is short, you need Python.')
    True
    D: seq = [1, 2, 3, 4]
    >>> sep = '+'
    >>> sep.join(seq)
    '1+2+3+4'