Enhanced FOR loops in C++

In C++11, if your compiler supports it, yes it is. It’s called range-based for. It works for C style arrays and any type that has functions begin() and end() that return iterators. Example:

Series Summation using for loop in python

Python syntax is a bit different than c. In particular, we usually use the range function to create the values for the iterator variable (this is what was in Stephen Rauch’s comment). The first argument to range is the starting value, the second is the final value (non-inclusive), and the third value is the step size (default of 1). … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)