• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

numbers = list(range(5)) print(numbers[4])
listpython3range
0 Votes
1 Answer
27th Sep 2018, 4:40 PM
Ajay B
In this>>> list(range(5)) can be num(range(5))?
range
1 Vote
1 Answer
25th Feb 2018, 9:33 PM
Devvrat Marwah
Devvrat Marwah - avatar
What is the result of this code? nums = list(range(5)) print(nums[4])
pythonrange
2 Votes
12 Answers
12th May 2017, 6:47 AM
Deepak Agrawal
Deepak Agrawal - avatar
What is the result of this code? nums = list(range(5)) print(nums[4])
=code?islist(range(5))numsofresultthethiswhat
0 Votes
2 Answers
19th Oct 2018, 3:53 PM
Popa Antonio
Popa Antonio - avatar
4 is the correct answer. list(range(5)) = [0, 1, 2, 3, 4] and nums[4] is the 5th element of the list.
pythonrange
0 Votes
2 Answers
17th Mar 2017, 10:09 AM
Petrov Ilya V
Petrov Ilya V - avatar
Hot today
Functions in python
2 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
Answer please
0 Votes
I need advice
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes