Python Forum
[solved thanks]hey need help for jupyter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved thanks]hey need help for jupyter
#1
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!
Reply
#2
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 Newtopython123 10 31,382 Apr-25-2019, 07:30 AM
Last Post: banu0395

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020