To use tkinter in python and display the values of the variables nums, x_i, and srednee_arifm, you can create a simple graphical user interface (GUI) using the Tk class.
Here is an example code that displays the values of the variables in a label widget:
main.py393 chars19 linesThis code creates a Label widget that displays the values of the variables nums, x_i, and srednee_arifm. The text argument of the Label widget is set to a formatted string that displays the values of the variables.
The pack() method is called on the Label widget to display it in the GUI.
Finally, the mainloop() method is called on the Tk instance to start the GUI and run the event loop.
gistlibby LogSnag