fork download
  1. # your code goes here
  2. x = "errorCode"
  3.  
  4. # o indice 5
  5. print( x[5] ) # C
  6.  
  7. # a partir do indice 5
  8. print( x[5:] ) # Code
  9.  
  10. # até o indice 5
  11. print( x[:5]) # error
  12.  
  13. # toda a string ao contrario
  14. print( x[::-1]) # edoCrorre
Success #stdin #stdout 0.02s 9068KB
stdin
Standard input is empty
stdout
C
Code
error
edoCrorre