So can some one please explain for and while , I know that in while loops if you get True it executes the program if its false it does not. But what about For loops? The things you put down under a while loop are also quite confusing? May some one please explain?
For loops in Python can indeed be confusing, especially if you come from a different language.
I think a good source to learn from is the Python documentation:
you iterate through a certain number of times (the most simple for loop)
basically you run the code inside the for loop for the amount specified.
also im not trying to be rude or anything but you're pretty wrong about them being confusing in python, if you've seen loops in other languages