this is correct, the symbol // means integer value. Therefore you must round the result down.
the value x=x/2 changes the value of x, if x is assigned to its self. It's helpful to replace the value of x with its current value in this case 4 or x=4/2. We can also see that the result is a float. PRACTICE QUIZ
when the print function encounters a \n it displays a new line
the value x=x+2 changes the value of x, if x is assigned to its self. It's helpful to replace the value of x with its current value in this case 2 or x=2+2.
the value x=x+1 changes the value of x, if x is assigned to its self. It's helpful to replace the value of x with its current value in this case 1 or x=1+1.
What is the type of the following: 0 Explanation, as there is no decimal the number is of type int. You can also use the type function to verify your results.
How confident are you in this answer?