My first code coach please tell me how to solve different situation in one question in code coach. I tried many time.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

My first code coach please tell me how to solve different situation in one question in code coach. I tried many time....

Please help

23rd Feb 2021, 3:55 AM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
20 Answers
+ 5
💕Sophia's World💞 #python answer in one line print(int(input())//6) #answer in 2 lines fruits = int(input()) print(fruits//6) #answer in 3 lines fruits = int(input()) pies = fruits//6 print(pies) #answer in 4 lines fruits = int(input()) apples = fruits//2 pies = apples//3 print(pies)
24th Feb 2021, 9:49 PM
Danuka Sandaruwan
Danuka Sandaruwan - avatar
+ 7
Don't try to jump directly to code playground after reading the question.Think of how to solve the problem in numerous way and start solving it.I think you will get better result.Hope it help.
23rd Feb 2021, 4:54 AM
བསོད་ནམ་བཀྲ་ཤིས།
བསོད་ནམ་བཀྲ་ཤིས། - avatar
23rd Feb 2021, 12:38 PM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
+ 5
This is the question i am trying to do with python but if i complete situation 1 so how can i complete situation 2 in results and other situations
23rd Feb 2021, 12:39 PM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
+ 5
I am gonna use python
23rd Feb 2021, 12:41 PM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
23rd Feb 2021, 8:13 AM
∆BH∆Y
∆BH∆Y - avatar
+ 3
Yes that i know but how to win all the situations
23rd Feb 2021, 12:44 PM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
+ 3
Did you please give me the answer in link of that question so that i ll understand how to solve problems of code coach and how to use than i think my all doutb will be clear..... Please....
23rd Feb 2021, 12:51 PM
💕Sophia's World💞(소피아)
💕Sophia's World💞(소피아) - avatar
+ 1
💕Sophia's World💞 Which language are you going use.
23rd Feb 2021, 12:39 PM
བསོད་ནམ་བཀྲ་ཤིས།
བསོད་ནམ་བཀྲ་ཤིས། - avatar
+ 1
fruit = int(input()) #your code goes here apples = fruit / 2 number_of_pies = apples / 3 number_of_pies = int(number_of_pies) print(number_of_pies) This is what I did to pass all conditions
24th Feb 2021, 4:56 AM
Duane Francis Rodrigues
Duane Francis Rodrigues - avatar
+ 1
you could use the condition if, the apples >= 3 divide the apples by 3, but if the condition is false, the number of pies is 0
25th Feb 2021, 4:00 AM
José Antonio Mendoza
José Antonio Mendoza - avatar
0
💕Sophia's World💞 1st show your attempt than we can tell what is wrong with your code.
23rd Feb 2021, 4:13 AM
Kaushik Patel
Kaushik Patel - avatar
0
💕Sophia's World💞 1st post your code here
23rd Feb 2021, 4:17 AM
Anurag Kumar
Anurag Kumar - avatar
0
First, divide the total number of fruit to get the total number of apple.Then floor division it by 3 as it require 3 apple to make one pie.Good luck
23rd Feb 2021, 12:43 PM
བསོད་ནམ་བཀྲ་ཤིས།
བསོད་ནམ་བཀྲ་ཤིས། - avatar
0
Something like this fruit = int(input()) apple = (fruit//2) pie = (apple//3) print(pie) Hope you get the concept.
23rd Feb 2021, 12:46 PM
བསོད་ནམ་བཀྲ་ཤིས།
བསོད་ནམ་བཀྲ་ཤིས། - avatar
0
💕Sophia's World💞 Hard work will never disappoint you :) As I see that is your motto
24th Feb 2021, 6:39 PM
Go Go Go
Go Go Go - avatar
0
1st learn coding by yourself then try to input the code..
24th Feb 2021, 9:13 PM
Faisal Hameed
Faisal Hameed - avatar
- 2
internal/main/run_main_module.js:17:47
24th Feb 2021, 7:28 PM
Andrei Mosoia
Andrei Mosoia - avatar
- 2
İ dont know / this reverse
24th Feb 2021, 8:20 PM
yunus emre arslan
yunus emre arslan - avatar
- 2
Hi
24th Feb 2021, 8:31 PM
Original Mor
Original Mor - avatar