As it says in the header, FOR LOOP is used when we want to execute block of code statements again and again until a condition is met, we can use For loops. To be very specific, to iterate any collections, like a list, tuples, etc. we can use For loops. Example: Let’s understand FOR LoopContinue reading “For Loop”
Tag Archives: forloop
Dictionaries
Dictionaries are a bag of key value pairs which is written inside two curly braces. It is a collection of key values pairs that is not ordered, can be changeable and can be indexed. Rather than indexes, in any other collections like lists, arrays, etc., items can be obtained via Key. Now let’s see howContinue reading “Dictionaries”