• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

How???

What is the output of this code? list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]]) Its answer is : 8 didn't understand!!

quiz
24th Jun 2018, 6:19 AM
vineet sawant
vineet sawant - avatar
3 odpowiedzi
+ 4
list[4]=5 so, list[list[4]]=list[5]=8
24th Jun 2018, 6:34 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
Answered here: https://www.sololearn.com/Discuss/1361273/how-this-possible-can-u-pls-explain-it
24th Jun 2018, 8:58 AM
Janning⭐
Janning⭐ - avatar
0
got it!👍 thanks
24th Jun 2018, 9:27 AM
vineet sawant
vineet sawant - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Is this realistic enough?
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Can someone explain inline and block elements please
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes