¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones 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
Access deny problem
2 Votes
BOTSS
0 Votes
3 consecutive words
0 Votes
Help
0 Votes
A small question
0 Votes
c++ help
0 Votes
How to use ai ?
0 Votes