Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Counting down: what does print(list(range(5, 0, -2))) show? | StemPy Lab
Quizzes
/
Counting down: what does print(list(range(5, 0, -2))) show?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Loops
Created by
StemPy Lab
Counting down: what does print(list(range(5, 0, -2))) show?
[5, 3, 1, -1]
[5, 3, 1]
[5, 4, 3, 2, 1]
[]
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← Two loops: for a in range(3), with for b in range(2) inside it, and print("*") in the inner body. How many stars are shown?
How many halvings take 100 down to 0? The loop is: while n > 0, n = n // 2, and count the rounds, starting with n = 100. →
More on
Python Basics › Loops
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
This loop should show the even numbers from 2 up to and including 10.
Medium
Write a program that asks for a password, again and again, until the user types python123.
Medium
Find the first number from 100 upwards that can be divided by both 6 and 8.
Easy
Asha saves 45 rupees every week, and has 0 at the start.
Easy
All problems on this topic →