I have a code that calculates some stuff and has a lot of hardcoded values and duplicity, I just need help in arranging it in such a way It wouldn't look messy.

This is not my actual code but basic structure of my code

```
def my_code():
    a = [func1(x),func2(x),func3(x)]
    return a

def func1(x):
    func1_x =  #calculation using x formula
    func1_dict = {}
    func1["name"] = #some f1hardcoded name
    func1["school"] = "some f1hardcoded value"
    func1["school_address"] = "some f1hardcoded value"
    func1["score_in_written"] = f" func1 student scored {func1_x} percentage "
    func1["score_in_perc"] = func1_x

def func2(x):
    func2_x = #some calculation using y formula
    func2_dict = {}
    func2["name"] = #some f2hardcoded name
    func2["school"] = "some f2hardcoded value"
    func2["school_address"] = "some f2hardcoded value"
    func2["score_in_written"] = f" func1 student scored {func2_x} percentage "
    func2["score_in_perc"] = func2_x

def func3(x):
    func3_x = #some calculation using z formula
    func3_dict = {}
    func3["name"] = # f3 related some hardcoded name
    func3["school"] = " f3 related some hardcoded value"
    func3["school_address"] = " f3 related hardcoded value"
    func3["score_in_written"] = f" func1 student scored {func3_x} percentage "
    func3["score_in_perc"] = func3_x

```

Hardcoded values basically would not be changed for any x value in a particular function, only the score in percentage and score\_in\_written would change.

As I have many functions like this (till func9), is there any way I can change this into better code structure?
Is there any way I can make this code a little tidy and clean?