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")
+ 5
Wlcm
+ 4
Motuncoded hope this help u
+ 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
+ 3
Motuncoded
sale = int(input())
if sales == 7:
print(‘Broke Even’)
if sales < 7:
print(‘Loss’)
if sales > 7:
print(‘Profit’)
+ 2
Thanks
+ 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")
+ 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 😊
+ 1
sales = int(input())
if sales == 10:
print ('Profit')
if sales <5:
print('Loss')
if sales >5 and sales<10:
print('Broke Even')
+ 1
I have tried this and the last test is not passing
+ 1
Motuncoded
no problem 😉
Happy coding