Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
Motuncoded sales=int(input()) if sales*3<21: print("Loss") elsif sales*3==21: print("Broke Even") else: print("Profit")
17th Jan 2021, 11:33 AM
Nilla
Nilla - avatar
+ 5
Wlcm
17th Jan 2021, 11:38 AM
Nilla
Nilla - avatar
+ 4
Motuncoded hope this help u
17th Jan 2021, 11:34 AM
Nilla
Nilla - avatar
+ 4
Motuncoded It seems your question appears to be an assignment. Please show us your attempt and use the 8 rules to get help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community *can be a code coach solution which is meant for you to do to help you establish your skills abilities and where you need to learn... not the community *one issued by a school or other institution *one issued or created by another platform *one that appears to be in the form of a challenge that was created by you or somewhere else. Your question will be reviewed by a team of moderators and will most likely be marked for deletion. https://www.sololearn.com/Discuss/1316935/?ref=app
17th Jan 2021, 4:58 PM
BroFar
BroFar - avatar
+ 3
Motuncoded sale = int(input()) if sales == 7: print(‘Broke Even’) if sales < 7: print(‘Loss’) if sales > 7: print(‘Profit’)
17th Jan 2021, 11:33 AM
Brain & Bones
Brain & Bones - avatar
+ 2
Thanks
17th Jan 2021, 11:37 AM
Motuncoded
Motuncoded - avatar
+ 2
Motuncoded #no. of hovercrafts company can manufacture = no = 10 no = 10 #cost of 1 hovercraft = 20 lakh = 20 cost = 20 #additional expenditure on insurance = 10 lakh = 10 #total cost total_cost = no * cost +10 #sales per month = sales= input value sales = int(input()) #price of 1 hovercraft price = 30 #sales value per month sales_value = sales * price if sales <=10: #as company cannot manufacture more than 10 if sales_value > total_cost : print ("Profit") elif sales_value == total_cost: print ("Broke Even") else: print ("Loss")
17th Jan 2021, 12:18 PM
CHANDAN ROY
CHANDAN ROY - avatar
+ 2
Cost = 2000000 Insurance = 1000000 Money = 3000000 No = 10 Input = int(input ()) Loss = Cost * No + Insurance Profit = Input * Money if Loss > Profit: print('Loss') elif Loss < Profit: print('Profit') else: print('Broke Even') Hope this helps you 😊
17th Jan 2021, 3:18 PM
Ezra Bridger 2207 [INACTIVE]
Ezra Bridger 2207 [INACTIVE] - avatar
+ 1
sales = int(input()) if sales == 10: print ('Profit') if sales <5: print('Loss') if sales >5 and sales<10: print('Broke Even')
17th Jan 2021, 11:30 AM
Motuncoded
Motuncoded - avatar
+ 1
I have tried this and the last test is not passing
17th Jan 2021, 11:30 AM
Motuncoded
Motuncoded - avatar
+ 1
Motuncoded no problem 😉 Happy coding
17th Jan 2021, 11:53 AM
Brain & Bones
Brain & Bones - avatar