Python in Elixir
Execute Python Code
Write your Python code below and execute it directly from Elixir:
Examples to Try:
-
import math
print("The square root of 16 is", math.sqrt(16)) -
print("Current date and time:")
import datetime
print(datetime.datetime.now()) -
data = [1, 2, 3, 4, 5]
sum_of_squares = sum([x**2 for x in data])
print("The sum of squares is", sum_of_squares)