Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
blem1410667yFunctions make copies of variables that are passed and make operations on them, so x is used only in terms of allocating memory, redefined to 2 immediately. Result is 1, can confirm.
Related Rants
-
hashit6Substitute Teacher who apparently majors in Java sees my copy. T - Your programs are incomplete M - You mean ?...
-
unknowndev110Came home to visit parents Dad - Internet on my laptop isn't working (I switched him on a Ubuntu platform beca...
-
FadedCoder15That weird moment when you don't understand what ++ or -- means in devRant cause you Python developer
What is output of this code? And tell me why.Thank you !
question
python 3