Computers and Technology

Hey, if anyone is familiar with python coding I would be appreciative of some troubleshooting help on some code. I am trying to get a proper decimal response on a division question and can't get anything except 0 or 0.0 when I convert result3 to a float. My question is how do I get a PROPER decimal response on this, and thank you.
the code :
numy1=(8)
numy2=(13)
numy3=((numy2)-(numy1))
result3=(numy3)/(numy1)
print (result3)
#the proper answer should be 0.625

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, paige1614
When you collaborate or meet with a person or group online, it is called
Answers: 1
image
Computers and Technology, 22.06.2019 14:30, SKYBLUE1015
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, bob4059
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_cost should be removed since header files should not contain constants. c)the definition of book should be removed since header files should not contain class definitions. d)the body of the calculate_terms function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
Do you know the correct answer?
Hey, if anyone is familiar with python coding I would be appreciative of some troubleshooting help o...

Questions in other subjects:

Konu
Mathematics, 18.12.2021 14:00
Konu
Mathematics, 18.12.2021 14:00
Konu
Mathematics, 18.12.2021 14:00