Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why this code runs?: nums = [4, 5, 6] msg = "Numbers: {} {}". format(nums[0], nums[1], nums[2]) print(msg) Numbers:4, 5. Byt the code: nums = [4, 5, 6] msg = "Numbers: {} {} {} {}". format(nums[0], nums[1], nums[2]) print(msg) leading to error? IndexError: tuple index our of range
python
strings
1 Vote
3 Answers
16th Oct 2016, 10:28 PM
питер огнекрылый
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
Next >
Hot today
Saturn League badge
2 Votes
Sololearn keeps crashing
1 Votes
SHOULD I LEARN HTML OR PYTHON/JAVA
0 Votes
Lua course?
2 Votes
Why producer consumer not working at all
1 Votes
certificate
1 Votes
Adding an image to my html
0 Votes
CSS
1 Votes
Not able to activate account
0 Votes
About Advanced Courses
0 Votes