human
Give me a code to (4d) Restrictions on lambda expressions and the other steps required given the following:
(4d) Restrictions on lambda expressions 
Lambda expressions consist of a single expression statement and cannot contain other simple statements.  In short, this means that the lambda expression needs to evaluate to a value and exist on a single logical line.  If more complex logic is necessary, use def in place of lambda.
Expression statements evaluate to a value (sometimes that value is None).  Lambda expressions automatically return the value of their expression statement.  In fact, a return statement in a lambda would raise a SyntaxError.
The following Python keywords refer to simple statements that cannot be used in a lambda expression: assert, pass, del, print, return, yield, raise, break, continue, import, global, and exec.  Also, note that assignment statements (=) and augmented assignment statements (e.g. +=) cannot be used either."
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to (4d) Restrictions on lambda expressions and the other steps required.

# Just run this code
# This code will fail with a syntax error, as we can't use print in a lambda expression
import traceback
try:
    exec "lambda x: print x"
except:
    traceback.print_exc()