As well as in Python, for loops are used in Java, C, C++, JavaScript, PHP, Swift and Ruby, among others.