Sesiones de PyR
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 Votos
5 RespuestasEn tendencia hoy
How to make a game code
1 Votes
What is HelloWorld
1 Votes
About create tuples [Solved]
1 Votes
Headless CMS
1 Votes
Can anyone fix for me this code
1 Votes
Missing]
0 Votes
HTML
0 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
Tic tak toe
0 Votes