On Tue, Oct 11, 2016 at 1:58 PM,  <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?

Because after the first loop n < x
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to