from tkinter import * window = Tk() window.title("Flashcards- DATA") window.geometry("700x420") txt = Label(window, width=33, height=18, bg="#f5f5f5", text=" ", anchor="nw", pady=10, padx=10, wraplength=305, justify="left") txt.place(x=330, y=95) info = Label(window, text="Click the buttons to read the information about each topic.", fg="#454545") info.place(x=178, y=60) def binaryNum(): txt.config(text="Data is considered to be raw facts and figures, which are stored in bits, or binary digits." "\n\nComputers store all information using bits, which stores either the value 0 or 1." " A byte is a unit of digital information that consists of 8 of those bits." " Conversion: divide by 8 to convert from bits to bytes or multiply by 8 to convert from bytes to bits." "\n\nAbstraction is the process of reducing complexity by focusing on only the ideas that a user needs to know." " This is done mainly by hiding irrelevant details from the user." "\n\nDue to limitations in computer memory, programs sometimes encounter issues with roundoff, overflow, or precision of numeric variables.") info.config(text="Binary Numbers") info.place(x=298, y=60) def dataComp(): txt.config(text="Data compression is a reduction in the numbers of bits needed to represent the data." " It is used to save transmission time and storage space. In order to do so, it removes all remove all the repeated characters" " insert a single character or symbol in its place. A simple form of data compression is known as run-length encoding (RLE)." "\n\nLossless compression: algorithms reduce the size of files without losing any information in the file," " which means that we can reconstruct the original data from the compressed file." "\n\nLossy compression: algorithms reduce the size of files by discarding the less important information in a file, " "which can significantly reduce file size but also affect file quality.") info.config(text="Data Compression") info.place(x=291, y=60) def extract(): txt.config(text="Scalability is the ability of a resource to adapt as the scale of the data it uses increases (or decreases)." "\n\nData Biases: Collecting more data won't make this problem go away by itself; " "you need to identify potential biases in your data and take steps to correct them, such as surveying people from all different background." "\n\nCleaning data is a process that makes the data uniform without changing their meaning." "\n\nMetadata are data about data. For example, the piece of data may be an image, " "while the metadata may include the date of creation or the file size of the image.") info.config(text="Extracting Information from Data") info.place(x=254, y=60) def program(): txt.config(text="The process of examining very large data sets to find useful information, such as patterns or relationships, is known as data mining." " You can also process text data using text analysis (or text mining) tools. Text analysis looks for patterns within a written piece " "(anywhere in length from a clause to a novel and beyond) to categorize or classify it." " Data processing programs can also allow you to make tables and diagrams, such as line or bar graphs, to visualize your data." "\n\nData Transformation:\n- Modifying every element of a data set\n- Filtering data sets by quality" "\n- Creating data visualization tools (e.g. graphs,\n charts, and word-bubbles)" "\n- Identifying patterns, trends, correlations, and\n outliers by analysing data") info.config(text="Using Programs with Data") info.place(x=269, y=60) def reset(): txt.config(text=" ") info.config(text="Click the buttons to read the information about each topic.") info.place(x=178, y=60) Label(window, text="DATA", font=("Arial", 15)).place(x=328,y=15) Label(window, text="Flashcards", font=("Arial", 13)).place(x=315,y=33) Button(window, text="Binary Numbers", padx=55, pady=4,command=binaryNum, relief="sunken").place(x=65,y=110) Button(window, text="Data Compression", padx=48, pady=4, command=dataComp, relief="sunken").place(x=65,y=170) Button(window, text="Extracting Information from Data", padx=5, pady=5, command=extract, relief="sunken").place(x=65,y=230) Button(window, text="Using Programs with Data", padx=24, pady=4, command=program, relief="sunken").place(x=65,y=290) Button(window, text="Reset", padx=82, pady=4, command=reset).place(x=70,y=350) window.mainloop()