Aug-11-2020, 03:28 AM
Please put your code inside "python" tags so the formatting can be seen.
Variables assigned inside a function are by default only available within the function. When you call
In your case, the first argument is "packet_1_name", but that variable has never been assigned outside a function, so there is no value that can be sent to the function.
Variables assigned inside a function are by default only available within the function. When you call
packet_1
, it will take the first argument and assign that to packet_1_LOC in the function. Then you assign "Desktop" to it, discarding anything that was assigned previously.In your case, the first argument is "packet_1_name", but that variable has never been assigned outside a function, so there is no value that can be sent to the function.