Обсуждения
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 голосов
5 ответовi dont know what should i do
1 голос
1 ответWhich coding language should I do?
0 голосов
2 ответовI got a question
1 голос
2 ответовWhat's wrong here?
2 голосов
1 ответHow to learn hacking?
-5 голосов
3 ответовlabels vs including process
0 голосов
1 ответHELP ME! URI 1323 - C#
-1 голос
1 ответCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1 5 5
2 5 10
3 5 15
4 5 20
5 5 25
6 5 30
0 голосов
5 ответовNeed help with my newsletter
0 голосов
2 ответовАктуальное сегодня
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Hello Everyone
0 Votes