Discussions Q&R
Import random
0 Vote
16 RéponsesI 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 Vote
5 RéponsesAujourd'hui en vedette
Help me understand
1 Votes
Ошибка в приложении Sololearn
1 Votes
Please help, I'm lost
0 Votes
Ethical Hacking Course
1 Votes
Html-queries
1 Votes
Py
0 Votes
Pygame learn
1 Votes
Hi how can to learn java
1 Votes
Who made
1 Votes
Develop mode on smartphone
1 Votes