You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
172 B
Python
9 lines
172 B
Python
5 years ago
|
mycode = 'print("hello world")'
|
||
|
code = """
|
||
|
def mutiply(x,y):
|
||
|
return x*y
|
||
|
|
||
|
print('Multiply of 2 and 3 is: ',mutiply(2,3))
|
||
|
"""
|
||
|
exec(mycode)
|
||
|
exec(code)
|