Sesiones de PyR
Question about "return"
0 Votos
1 Respuestahow
0 Votos
3 RespuestasFunctions in c
0 Votos
1 RespuestaWhat is the error ?
2 Votos
1 Respuesta
Define a Python function "orangecap(d)" that reads a dictionaryd of this form and identifies the player with the highest total score. Your function should return a pair(playername,topscore) whereplayername is a string, the name of the player with the highest score, andtopscore is an integer, the total score of playername.
-1 Voto
3 RespuestasReturning array in c++
0 Votos
5 Respuestasdouble arr[]={5,2,7,8,11,9};
int n = sizeof(arr) / sizeof(arr[0]);
double sum = 0;
for(int i=0;i<n;i++)
{
sum+= arr[i];
}
double avg = sum / n;
cout<< "avarage ="<< avg<< endl;
return 0;
)
/*what does int n= sizeof(arr[]) /sizeof(arr[0]);
do, can someone explain that line for me*/
0 Votos
3 RespuestasReturning a string
0 Votos
1 Respuestawrite function
0 Votos
2 RespuestasEn tendencia hoy
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Animation
2 Votes
Clean Code
2 Votes
While or for loop
0 Votes
PHP
1 Votes