Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for Python Online Test | Online Quiz | Online Exam

←Go Back to Online Practice Test

Ques. Is ''a==b'' in the below code? Or what is the output of the given below code?

import random
a = random.randrange(4)
b = random.choice(range(0, 3))
a == b
Option 1. True
Option 2. False
Option 3. None
Option 4. None of these

Ans. Option 2

Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No
©2024 WithoutBook