Hello world! Python

Welcome to Python. It’s a general purpose, open source language free to use.

Python scripts are stored in .py files. print() statement is used to output.

#Say Hello!
print("Hello World!")

# Addition and subtraction
print(5 + 5)
print(5 - 5)

# Multiplication and division
print(3 * 5)
print(10 / 2)

# Exponentiation
print(4 ** 2)

# Modulo
print(18 % 7)

# How much is your $100 worth after 7 years?
print(100 * (1.1 **7) )

1 thought on “Hello world! Python”

Leave a Comment