Why does on printing the value of variable turns out to be a previous one?

前端 未结 0 549
死守一世寂寞
死守一世寂寞 2021-01-31 11:47

I m learning python and stumbled upon this piece of code please help me out

1. var = 10                    
2. while var > 0:              
3.   var = var -1
4         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题