Answers, please?

1. In Python, what is returned when evaluating [n for n in range(10) if n % 2]?

2. In Python, what kind of error is returned by the following code? (e.g. NameError, ValueError, IOError, etc.) def my_func(n1, n2): return n1 + n2 my_func(1, 2, 3)

3. What is returned by datetime(1970, 1, 1).strftime('%Y-%d-%B') in Python?

1 Answer

Relevance
  • EddieJ
    Lv 7
    5 months ago

    1. 17

    2. Value Error

    3. 2020-18-6

Still have questions? Get your answers by asking now.