Python Forum
[solved thanks]hey need help for jupyter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: [solved thanks]hey need help for jupyter (/thread-37393.html)



[solved thanks]hey need help for jupyter - irisislearning - Jun-05-2022

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!


RE: hey need help for jupyter - irisislearning - Jun-05-2022

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!