Courses
Courses
Code Compiler
Code Compiler
Discuss
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
6 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
Help please?
4 Votes
How to get better with problem-solving and programming
1 Votes
Odd even threads without condition variable
0 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Game development
0 Votes
Suggestions needed
4 Votes
Write a program to find the strings are in isogram or not
0 Votes
Ruby programming?
3 Votes