F&A Diskussionen
I 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 Stimmen
5 AntwortenHeute heiß
Activities on sololearn
2 Votes
What is problem in this code
0 Votes
playground input
0 Votes
Html issue
1 Votes
Software developer
0 Votes
How I can use div
0 Votes
TIPS From Veterans
1 Votes
Playground input
0 Votes