Discussioni Q&A
CODE PLAYGROUND
1 Voto
2 RisposteAbout delete
3 Voti
3 RisposteI dont unserstand the output if this code :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[0], nums[1], nums[2])
print(msg)
4 4 6
but when I do :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[1], nums[1], nums[2])
print(msg)
it gives me
5 5 6
is there a priority in the Reading ?
0 Voti
5 RispostePopolare oggi
debate which is better
5 Votes
Cource
1 Votes
why is my AI in spanish
0 Votes
Arduino
2 Votes
Debugging issue?
0 Votes
Text editor
0 Votes
how to view only application
0 Votes