Nested Loop Code Help

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jan 26 18:11:41 EST 2020


On 27/01/20 4:15 am, ferzan saglam wrote:
> for x in range ( 0, 10):
>    stars = 'x'
>    count = 0
By the way, this 'for' loop is unnecessary. The end result is just to
give initial values to three names. You don't need a loop at all for
that, just three assignment statements.
        	  	  	  	    	   	
-- 
Greg


More information about the Python-list mailing list