Generate a code to convert a given name to its uppercase version.
john
"""
Python program to convert a name to uppercase
"""

def to_uppercase(name):
 return name.upper()

name = "john" 
print(to_uppercase(name))