Human: how do you create percentage in. Assistant: 
Here is a Python function to how do you create percentages in a spreadsheet

import re

def percentage(num, total):
    """
    Returns a percentage of num out of total.
    """
    return (num / total) * 100

# Enter the number
num = 100

# Enter the total
total = 1000

# Calling the function
print((percentage(num, total)))

#Example Output
# 10.0

#Remember to inspect code for bugs.