I am just starting to learn python, I was trying out some code and I wanted to ask why the two following codes function differently?
First code sample: