Course Name: Python for Trading: Basic, Section No: 9, Unit No: 8, Unit type: Exercise
Hi Vishal,
In Python, the interpreter needs you to intend a line if you are writing a method, function or an if-else method. For example, the following for loop code will run without any errors:
for i in Close_Price_ABC:
if i < 300:
print ('We Buy')
But if you put the second line directly below the first line, as shown below:
for i in Close_Price_ABC:
if i < 300:
print ('We Buy')
It will give an indentation error.
Hope this helps.
Even with the indentation it shows indentation error until it exactly matches with solution code , like if I put " in place of ' in print function it shows indentation error or using () after if
Hi Vishal,
Can you check now. I think this is fixed.