Dyskusje Q&A
Question about "return"
0 głosów
1 Odpowiedźhow
0 głosów
3 odpowiedziFunctions in c
0 głosów
1 OdpowiedźWhat is the error ?
2 głosów
1 Odpowiedź
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 Głos
3 odpowiedziReturning array in c++
0 głosów
5 odpowiedzidouble 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 głosów
3 odpowiedziReturning a string
0 głosów
1 OdpowiedźAnyone help me with this?
0 głosów
2 odpowiedziwrite function
0 głosów
2 odpowiedziPopularne dzisiaj
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
New code
1 Votes
Clean Code
2 Votes
While or for loop
0 Votes