What's wrong with this simple python program

python

#1

i = 1
res = 0
while ( i < 100 ):
… if ( i%2 == 0):
… res += i
… i += 1

This program is not returning any results on lab. What’s wrong with it?


#2

https://www.tutorialspoint.com/python3/python_while_loop.htm


#3

we need to display the output in the console so use print function to get the output like this print(i)