Learn practical skills, build real-world projects, and advance your career

noofbags = 100
purchaseprice = 13.2
saleprice = 18.24
profitperbag = saleprice - purchaseprice
totalprofit = profitperbag * noofbags
print("The total profit made for",noofbags," is ",totalprofit)
The total profit made for 100 is 503.9999999999999
name = 'Amit'
age = 35
hasandroidphone = 1
print(name," is aged ",age," and owns an","Android phone" if hasandroidphone else "Iphone")
Amit is aged 35 and owns an Android phone