Q&A DiscussÔes
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 Voto
5 RespostasQuente hoje
Why's there an error
1 Votes
Hello people
1 Votes
What to learnđ€
0 Votes
String functions
1 Votes
Linked list
1 Votes
Html
0 Votes
== and .equals difference?
1 Votes
How to start learning DBMS?
0 Votes
while loops
0 Votes