DEV Community

Discussion on: Solve This Python Question

Collapse
 
ahmadsaadkhan profile image
Ahmad Saad

undefined capital I in a[I]

Collapse
 
azlan_syed profile image
Azlan-Syed

Sorry for that i accidently putted that here i edited it now

Collapse
 
ahmadsaadkhan profile image
Ahmad Saad

Then after fixing all errors.
Output is
0
1
4
9
16
25
36
49
64
64

Thread Thread
 
azlan_syed profile image
Azlan-Syed

CORRECT 👍🏻