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
How to allow one instance of exe
2 Votes
Reverse observer pattern : remove dynamic_cast
2 Votes
Python
1 Votes
Theater management help me
2 Votes
What has happened?
1 Votes
What should I add/improve ?
1 Votes
Remove raw pointer from observer design pattern
0 Votes
Should You Specialize or Diversify in Programming?
1 Votes
python beginner needing help
0 Votes
I'm not getting all test cases passed in the Average Word Length problem (in code coach). I'm dropping my code here.
1 Votes