If condition SyntaxError: unexpected EOF while parsing

I have doubt in if, for,while blocks.

when I give this below syntax

if hours_per_week > 10:

I get this error. can you pls help me with this?

File “”, line 1 if hours_per_week > 10: ^ SyntaxError: unexpected EOF while parsing

Can you please share the full code?

Also, ensure there is a line of code after the if statement.
Like for example:

if hours_per_week > 10:
    print('OK')

I have just repeated as such in the video class been taken by prof Pratyush.
looks I have not defined properly and I didn’t know it as well. can you pls help me with if, for, while blocks topic to begin.

hours_per_week = 10
if hours_per_week <10:
print(“data”)

I didn’t get anything if I execute this block

It’s due to the fact that hours_per_week is 10, and hence if block will not get executed.

this is because (hours_per_week=10 (given)) & (hours_per_week !<10(actually)).......due to which the condition inside "if" statement doesn't get "True" hence the control will not enter into the "if" statement and nothing will be printed..and yes you haven't done the proper indentation..this should be like this:-

hours_per_week = 10
if hours_per_week <10:
  print(“data”)