I would like to print the variable x, so the text "Example1" in bold. Also I would like to print the text variable y with smaller size: only variable y with smaller size.
There were examples on the web, but not like in my case, because I use f "and {xxx}.
IMPORTANT: I would like to select the single variables DIRECTLY, so I can better manage them individually. So I simply mean {x} or {y}. I would like to set that all {x} should be bold (wherever they are placed in the sentence)
Here is an example of an executable code that you can use in case you want to help me. Thank you
from tkinter import ttk
import tkinter as tk
from tkinter import *
root = tk.Tk()
root.geometry("400x150")
textbox = tk.Text(root,width=48,height=4)
textbox.place(x=1, y=5)
x = "Example1"
y = "Example2"
def print():
text = f"A sentence that contains the variable: {x}" \
f"\n \n This must possess smaller size: {y} "
textbox.insert(tk.END, text)
button2 = Button(root, text="Print", command = print)
button2.pack()
button2.place(x=15, y=100)