Service information

Plans

free

Platforms

Requirements

OpenAIOpenAI API key

Description

Zeus Notebook is a free online service that provides an AI code assistant. With a simple login via the website, users can access a python notebook that runs directly in their browser.

Examples

💻🏃‍♂️

Run Code

inputs

import random

# Generate two random numbers

num1 = random.randint(1, 100)

num2 = random.randint(1, 100)

# Generate a random operator

operator = random.choice(['+', '-', '*', '/'])

# Perform the calculation

if operator == '+':

  result = num1 + num2

elif operator == '-':

  result = num1 - num2

elif operator == '*':

  result = num1 * num2

elif operator == '/':

  # Check for division by zero

  if num2 == 0:

    result = "Division by zero is not allowed"

  else:

    result = num1 / num2

# Print the calculation and result

print(f"{num1} {operator} {num2} = {result}")

outputs

50 - 75 = -25

Share this page: