Dec-01-2020, 07:11 PM
You are calling the function more than once.
Sometimes when you run the function, the elif is taken, the "xxxxx" prints, and the function exits.
Then another time when the function is called the elif is skipped and the "why is this printing" appears.
Sometimes when you run the function, the elif is taken, the "xxxxx" prints, and the function exits.
Then another time when the function is called the elif is skipped and the "why is this printing" appears.