Dear Python programmers,
I am a student of computer science, and am now applying for an online course in data science. In order to do this properly, I have to answer 3 questions. Since I am a complete beginner in Python, I would need your help (I have experience in Java).
I am using this online plattform for Python: https://www.tutorialspoint.com/execute_p...online.php
And I have to answer the following 3 questions:
- what is returned when I evaluate [n for n in range(10) if n % 2]?
- 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)
- What is returned by datetime(1970, 1, 1).strftime('%Y-%d-%B') in Python?
I am trying to use the plattform above (at tutorialspoint), but still am not doing it proper and am not sure how to use it in order to answer these 3 questions. Please help me.
Thank you in advance.
I am a student of computer science, and am now applying for an online course in data science. In order to do this properly, I have to answer 3 questions. Since I am a complete beginner in Python, I would need your help (I have experience in Java).
I am using this online plattform for Python: https://www.tutorialspoint.com/execute_p...online.php
And I have to answer the following 3 questions:
- what is returned when I evaluate [n for n in range(10) if n % 2]?
- 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)
- What is returned by datetime(1970, 1, 1).strftime('%Y-%d-%B') in Python?
I am trying to use the plattform above (at tutorialspoint), but still am not doing it proper and am not sure how to use it in order to answer these 3 questions. Please help me.
Thank you in advance.
