0
Please help on python
Write program that has two variables nApples and nKids. Assign integer values to these variables. Divide the number of apples by the number of kids. Display the result using a command in a statement: There are....Kids and... Apples Each kid gets....apples, and ....apples remain
6 Antworten
+ 2
I do not know Python but I still tried-
see if this helps
https://code.sololearn.com/c9s2xpbs3fXZ/?ref=app
+ 2
https://code.sololearn.com/c6u3VVZAroBb/?ref=app
+ 1
Share with us the code that you have written for this particular problem so that someone can help you.
Without your attempt first, there is no point in asking for answers.
0
I don't know if I'm using the right formula. The output gives me errors
\nApples=6
\nKids=3
\n=(6//3) NB* for dividing apples by the number of kids
NB* command statement
There are (3) kids and (6) apples.
Each kid gets (1) apples, and (3) apples remain.
0
Thank u so much guys☺️
0
what error are you getting if it is a syntax error ,note that python variables can only start with _ or a letter and not a backslash or any other 'special' character and I don't know why each kid receives 1 apple instead of 2 and 0 remain.