Hi...

I want ti contril the while loop,

just make it looping just for x times, ex: loop for 5 times and pass to the next code :)

That is just the job for for loop with range(5)

If you want to do that with a while loop, you need an updated counter and an exit condition.

while name = 'Name' and x <= 5:
	print name
	x += 1

!!

while name == 'Name'

why dont you just point him to python docs!

Dont give him a fish! show him how to catch one.

You are not doing hime anygood.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.