Initialize variable to 0 before looping. Use += operator to add current number to total. Range() class creates numbers within specified range
EOFError occurs when input() function prompts without value input. Ctrl+C, Ctrl+D or Ctrl+Z can cancel input prompts
Python has five main types: numerics, sequences, mappings, classes, instances and exceptions. Collection classes can be mutable, but methods returning None don't modify original. Objects can be compared, tested for truth value and converted to strings
Loops allow repeating code blocks or actions on objects. For Next Loop iterates through integers with optional step value. For Each Loop processes all objects in a collection. Do While and Do Until loops repeat until/while condition met
Loops run repeatedly until a condition is met. Python has two types: for and while loops. While loop checks condition before executing code. Loop continues until condition becomes False. Infinite loops occur without variable updates
Loops execute code blocks multiple times with different values. JavaScript supports for, for/in, for/of, while, and do/while loops. Loops are useful for repetitive array operations