Code viewer for World: Activity 1
# ============================================================
#  LESSON 1 — Variables, Expressions & Statements
#  Read the theory on the lesson page first, then work
#  through each section here and run the world to see output.
# ============================================================


# ============================================================
# SECTION 1 — Print Statements
# ============================================================

print("Hello, World!")

# TASK: Change "World" to your own name and run the world.


# ============================================================
# SECTION 2 — Variables
# ============================================================

name   = 'Alice'
age    = 18
height = 1.65

print(name)
print(age)
print(height)

# TASK: Replace the three values above with your own name, age and height.
#       Then add a print() line that shows all three on the same line, e.g.
#         Alice is 18 years old and 1.65m tall.
#       Hint: print() accepts multiple values separated by commas.


# ============================================================
# SECTION 3 — Maths and Expressions
# ============================================================

x = 10
y = 3

print(x + y)        # 13
print(x - y)        # 7
print(x * y)        # 30
print(x / y)        # 3.333...
print(x // y)       # 3   (whole number only)
print(x % y)        # 1   (remainder)
print(x ** y)       # 1000
print((2 + 3) * 4)  # 20  (brackets first — BIMDAS)

# TASK: Using your age and height variables from Section 2,
#       calculate how many months you have been alive (age x 12),
#       multiply that by your height, and print the result with a label.


# ============================================================
# SECTION 4 — Getting Input from the User
# ============================================================

user_name = await input("What is your name? ")
print("Nice to meet you,", user_name)

user_age      = await input("How old are you? ")
user_age      = int(user_age)
next_birthday = user_age + 1
print("Next year you will be", next_birthday)

# TASK: Add another input() that asks for the user's height in metres.
#       Convert it to a float, then print a sentence using their age and height.


# ============================================================
# SECTION 5 — Exercise
# ============================================================
# Write a program that:
#   1. Asks the user for a temperature in Celsius
#   2. Converts it to Fahrenheit:  F = (C x 9/5) + 32
#   3. Prints both values with a clear label
#
# Expected output (if the user types 25):
#   25.0 degrees C is equal to 77.0 degrees F

# Write your solution here: