Using range() will get the list of even numbers in the range given as input. www.tutorialkart.com - Â©Copyright-TutorialKart 2018, Salesforce Visualforce Interview Questions. Here’s a very short looping cheat sheet that might help you remember the preferred construct for each of these three looping scenarios. First we’ll look at two slightly more familiar looping methods and then we’ll look at the idiomatic way to loop in Python. The 'thousands separator' aspect is dealt with by a couple of external packages (in the 'import' declarations) which can be installed using 'go get'. For loops, in general, are used for sequential traversal. The other two methods we discussed are sometimes referred to as anti-patterns because they are programming patterns which are widely considered unidiomatic.