Prateek loves candy problem in challenges fundamentals and pattern section

my code sheet is attached below i have declared the name but the compiler is showing me the name error in my code…please help!!!

https://drive.google.com/file/d/1Oleh-w3MTKs85lVZlAlauUVv3iSF7Aqq/view?usp=sharing