Q&A Discussies
Threading and text file read write
0 Stemmen
1 Antwoord What mean this error?
0 Stemmen
6 AntwoordenHelp opening files
0 Stemmen
2 Antwoorden[DISCUSSION] Graphics Programming
0 Stemmen
1 Antwoord[TIP] File modes
4 Stemmen
1 AntwoordNeed some guidance
1 Stem
5 AntwoordenI 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 Stemmen
5 Antwoorden