print("Hello, World!")
print("Python", "is", "awesome", sep="-") # Output: Python-is-awesome
name = "Alice"
age = 25
print(f"{name} is {age} years old") # f-strings (Python 3.6+)
print("{} is {} years old".format(name, age)) # format() method
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print(f"Hello {name}, you are {age} years old!")
# Writing to a file
with open("example.txt", "w") as file:
file.write("Hello, File!")
# Reading from a file
with open("example.txt", "r") as file:
content = file.read()
print(content)