Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
a = [1,2,3] for a[-1] in a: print(a[-1])
tricky
-1 Vote
1 Answer
18th Oct 2020, 11:41 AM
Abdisa merga
What's the output of this code and explain. a=[1,2,3,4] for a[-1] in a: print(a[-1])
arrays
loops
python
python3
0 Votes
7 Answers
28th Jul 2022, 7:40 AM
Rex
Struked in a question.Someone can explain what happen here.
a[-1]
python
2 Votes
4 Answers
28th Oct 2019, 10:29 AM
Mohamed Ishad
What is the output of this code?
a[-1]
python
python3
7 Votes
5 Answers
3rd Mar 2020, 6:15 AM
APC (Inactive for a while)
Python quiz - How does this work?
a[-1]
challenges
python
quiz
sololearn
11 Votes
9 Answers
1st Mar 2019, 1:04 AM
[Abandoned]
What is the output of the below code? >>import array >>> a = [1, 2, 3] >>> print a[-3] >>> print a[-2] >>> print a[-1]
booleans
code
codeplayground
django
java
javascript
progress
python
python3
subqueries
0 Votes
2 Answers
1st Aug 2020, 10:05 AM
Nishan
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
Any coding competitions?
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Rise of AI
1 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes