L Linh Chi New member Sep 20, 2021 #1 What will be the output of the following Python code? Code: for i in range(int(2.0)): print(i) A. 0.0 1.0 B. 0 1 C. error D. none of the mentioned
What will be the output of the following Python code? Code: for i in range(int(2.0)): print(i) A. 0.0 1.0 B. 0 1 C. error D. none of the mentioned
N Nguyên Lê New member Sep 20, 2021 #2 Answer: b Explanation: range(int(2.0)) is the same as range(2). Upvote 0 Downvote