subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Your boss wants you to configure his laptop so that he can access the company network when he is on the road. you suggest a vpn connection to him. he is very concerned about security and asks you how secure vpn is. what do you tell him?
Answers: 1
question
Computers and Technology, 22.06.2019 17:20
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
You know the right answer?
Hey, if anyone is familiar with python coding I would be appreciative of some troubleshooting help o...
Questions
question
History, 17.11.2020 17:10
question
Computers and Technology, 17.11.2020 17:10
question
English, 17.11.2020 17:10
question
Physics, 17.11.2020 17:10
question
Mathematics, 17.11.2020 17:10
Questions on the website: 13722360