fork download
  1. # your code goes here
  2.  
  3.  
  4. i =1
  5.  
  6. print i
  7.  
  8.  
  9. if i==1:
  10. a=3
  11. else:
  12. b=2;
  13.  
  14. print a,b
  15.  
  16.  
Runtime error #stdin #stdout #stderr 0.01s 9016KB
stdin
Standard input is empty
stdout
1
3
stderr
Traceback (most recent call last):
  File "prog.py", line 14, in <module>
NameError: name 'b' is not defined