Variables
# Hello World example
print("Hello, World!")
# Variables and Data Types
name = "John"
age = 30
height = 1.8
is_employed = True
print(name)
print(age)
print(height)
print(is_employed)
# Basic operations
x = 5
y = 2
sum = x + y
difference = x - y
product = x * y
quotient = x / y
remainder = x % y
print(sum)
print(difference)
print(product)
print(quotient)
print(remainder)
Last updated