Which of the following is the correct way to format a try block in Python?

A. try {
num = int(input("Enter your age: "))

B. try:

num = int(input("Enter your age: "))