• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
0

Why is this the output?

This is the code: help= “SOS” a= help [1] b= help [-1] print(a,b) The answer is: O S but why?

pythonoutputquestionhelpsolveletternumberunderstandingexamassign
30th Nov 2018, 4:08 PM
Elis Belen
2 Respuestas
+ 8
S O S 0 1 2 positive index -3 -2 -1 negative index https://www.quora.com/What-is-negative-index-in-JUMP_LINK__&&__Python__&&__JUMP_LINK
30th Nov 2018, 4:10 PM
Rstar
Rstar - avatar
+ 1
thank you!
30th Nov 2018, 4:13 PM
Elis Belen

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
12 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Where can I learn c#
0 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
best language if i want to learn about AI
0 Votes