On 10/11/2016 11:58 AM, dhawanpawa...@gmail.com wrote:
> 
> n=6
> x=1
> while x<=n:
>     print "*"*x
>     x+=1
> while n>=x:
>     n=n-1
>     print "*"* n
> 
>   
> Only first loop is executing not the second one?

Did you try printing out the loop variable to see what it does and what
it is after the loop is finished?

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to