Sesiones de PyR
C# {0}
2 Votos
4 RespuestasC# {0}
1 Voto
3 RespuestasWhy {0}
1 Voto
2 RespuestasUnderstand the {0}
1 Voto
1 RespuestaWhat is {0}
0 Votos
1 RespuestaWhat's the meaning of {0} ?
23 Votos
14 Respuestaswhat is {0} this.
1 Voto
2 RespuestasWhat does {0} {1} means?
0 Votos
1 RespuestaWhat is the use of {0}
0 Votos
1 RespuestaWhy we use x = {0}
0 Votos
2 RespuestasI 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 Respuestasusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int age = Convert.ToInt32(Console.ReadLine());
int broAge = Convert.ToInt32(Console .Readline());
Console.WriteLine("You are {0} years old", "your bro is {1}", age, broAge );
}
}
}
-1 Voto
7 RespuestasWhat is this "{0}"?
4 Votos
1 RespuestaEn tendencia hoy
X velocity
2 Votes
And... Who is the staff then?
3 Votes
Files not linking in C++
0 Votes
Web Dev
1 Votes
Pls give me an idea
1 Votes
Why Pro?
1 Votes
Problem with Javascript
0 Votes