subject
Engineering, 10.10.2019 22:00 whitakers87

Consider this very simple function: (15 pts) def cube(x): answer = x * x * x return answer a) what does this function do? b) show how a program could use this function to print the value of y3, assuming y is a variable. c) here is a fragment of a program that uses this function: answer = 4 result = cube(3) print(answer, result) the output from this fragment is 4 27. explain why the output is not 27 27, even though cube seems to change the value of answer to 27.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 18:10
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
You know the right answer?
Consider this very simple function: (15 pts) def cube(x): answer = x * x * x return answer a) what...
Questions
question
History, 25.11.2020 14:00
question
Computers and Technology, 25.11.2020 14:00
Questions on the website: 13722360