New submission from 張晨韜 <s104213...@mail1.ncnu.edu.tw>:

Hello,I'm a Taiwanese student.
First,I will say sorry because of my poor English.If I have an offense,please 
forgive me.
Then,look at the picture about program.I declare a list "cards" to the function 
"Flush",and divide them by 13 in the function.The function Flash will return 
boolean finally. After that,I write "main" which declare a list and call 
"Flush" for it to show what value it is.However,when I print this list 
again,its value will be changed.
I'm confused that isn't Flush.cards a local variable belong to Flush? Why Flush 
can change the list's value for the other function without return? I asked my 
friend and he was confused,too.So I send this issue and hope to know why it 
is.Thanks.

----------
components: Windows
files: 未命名.png
messages: 340982
nosy: paul.moore, steve.dower, tim.golden, zach.ware, 張晨韜
priority: normal
severity: normal
status: open
title: Variable about function and list
type: compile error
versions: Python 3.6
Added file: https://bugs.python.org/file48288/未命名.png

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to