" 6. Run the modified code, and then try to think about the state of the program just by using the code and the output you see.
You should notice that the state you deduced is contradictory to the output printed in the second cell — for instance, welcome(dq) is not supposed to print anything (because we didn’t use print() this time)."
It s probably simple but I can’t figure why ‘welcome (dq)’ doesn’t print anything but ‘welcome (jn)’ does
Then when you modified the function, all the three variables should still be working even tough you did not initialized them in the current cell since they are already defined in a cell that was previously executed. If this is not happening, can you post more of your code?
Oh, that is beacuase you are not using the print() function. When you do not not use it your output will be only the output for your last line of code.
trying to piggyback here, when I try to run the %history -p function, the only thing that comes up is that I have run that function. the instructions say that a “quite verbose” history should come up, but I get nada. did I somehow delete my history or something? this is my first use of the forum, not sure how to share my screen yet
thx
Had the same doubt, didn’t thought that if print is not used then it will print last code. Thank you for your help. I searched the community before posting
But how come it printed ‘Welcome to python!’ , when we actually delete that line of code assignment py = ‘Python’ as per the question @otavios.s?