Python Forum

Full Version: [solved thanks]hey need help for jupyter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i’m working with jupyter in anaconda lab.
arithmetic operation doesn’t work after i assign value to parameters.
e.g.
when i input :
`
(12-10)/10
`
it works well and shows 0.2
when i input:
`
purchase_price = 10
sales_price = 12
profit = purchase_price - sales_price
`
it doesn’t work and can’t return the value.

could anyone help me to figure out the situation? many thanks!
Hey I've resolved this problem, just need to type print() ^^

(Jun-05-2022, 01:42 AM)irisislearning Wrote: [ -> ]i’m working with jupyter in anaconda lab.
arithmetic operation doesn’t work after i assign value to parameters.
e.g.
when i input :
`
(12-10)/10
`
it works well and shows 0.2
when i input:
`
purchase_price = 10
sales_price = 12
profit = purchase_price - sales_price
`
it doesn’t work and can’t return the value.

could anyone help me to figure out the situation? many thanks!