0

What is the output of the Python code below?And why? Import i For i in range (0, 5) Print(i) Time. Sleep(2)

Answers 1. After 2 seconds 1, 2, 3, 4, 5 are printed all together 2. After 2 seconds, 0, 1, 2, 3, 4 are all printed together 3. Prints 1, 2, 3, 4, 5 at an interval of 2 seconds b/w each number 4. Prints 0, 1, 2, 3, 4 at an interval of 2 seconds b/w each number

1st Oct 2019, 2:59 PM
Ohene Caleb
Ohene Caleb - avatar
2 Réponses
+ 1
it'll cause an error
1st Oct 2019, 3:41 PM
Taste
Taste - avatar