Can a def function break a while loop?
<pre><code>def CardsAssignment():
      Cards+=1
      print (Cards)
      return break      

while True:
      CardsAssignment()
</code></pre>

<p>Yes, I know that I cannot <code>return break</code>. But how can I break a while loop by the def function? Or my concept is wrong?</p>
