i have written this code and i need to run this file

def CreateEvent(str):
"This prints a passed string into this function";
   print str;
   return;

CreateEvent (print'''
content-type: text/html 
 
 <html> 
 <head> 
 <title> the list of all possible events that can be notified by our system 
</title> 
 </head> 
 <body> 
<form>
<input type="checkbox" name="tsunami" value="tsunami">tsunami<br>
<input type="checkbox" name="earthquake" value="earthquake">earthquake<br>
<input type="checkbox" name="volcano" value="volcano">volcano<br>
<input type="checkbox" name="hurricane" value="hurricane">hurricane<br>
<input type="checkbox" name="sinkholes" value="sinkholes">sinkholes<br>
<input type="checkbox" name="tornado" value="tornado">tornado<br>
<input type="checkbox" name="landslide" value="landslide">landslide<br>
<input type="checkbox" name="downburst" value="downburst">downburst<br>
</form>

<input type="submit" value="Submit">
</body>
</html>
''')



but it gives this error

expected an intended block.

can anyone please tell me how to overcome this problem? i am working in python 
3.3.0
thank you
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to