Q&A Discussões
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
1 Voto
3 RespostasQuente hoje
Activities on sololearn
4 Votes
What is problem in this code
2 Votes
playground input
1 Votes
Html issue
2 Votes
How I can use div
1 Votes
Can you help me ?
1 Votes
TIPS From Veterans
1 Votes
Playground input
1 Votes
App development 🔥☝️
1 Votes