range python in list code example Example 1: in range python for i in range(x) : #code Example 2: in range python for i in range(x) #[0;x[