Python MCQ Number 01380

Python MCQ Set 1 1. What is the output of the following? for i in range(2.0): print(i) a) 0.0 1.0 b) 0 1 c) error d) none of the mentioned AnswerAnswer: c [Reason:] Object of type float cannot be interpreted as an integer. 2. What is the output of the following? for i in range(int(2.0)):…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership