Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Why do we use random.seed(...) in a random test? | StemPy Lab
Quizzes
/
Why do we use random.seed(...) in a random test?
Python Programming
Medium
High School (11–12)
High School (9–10)
Undergraduate
General
Python Going Further › Testing and Debugging
Created by
StemPy Lab
Why do we use random.seed(...) in a random test?
So that the test runs faster
So that the same inputs are made each time and a failure can be reproduced
So that the numbers are more random
So that the test cannot fail
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A function gives a wrong answer for 75, but right for 74 and 76. Which kind of bug is the most likely?
A student has a bug. They change four lines at once, run the program, and it works. What is the problem? →
More on
Python Going Further › Testing and Debugging
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Think of a bug that you met while working through this book, or write one on purpose.
Easy
This function should give the average of a list, but gives a wrong answer for [2, 4, 6] (it gives…
Easy
A pipeline has three stages. For the input "Hello, World", it should give ["hello", "world"], but…
Medium
Write three properties that must be true for any list x and the function reversed_list(x) that…
Medium
All problems on this topic →