Skip to main content

Create Dictionary in Python

  

Create Dictionary in Python:

       PyDictionary is a Module which is used to create a dictionary using python . Using PyDictionary we can get Meanings, Synonyms, Antonyms and Translation to specific languages.

Installation:

    $ pip install PyDictionary

Step-1:

    importing modules
    
    from tkinter import *
    from PyDictionary import Pydictionary

Step-2:

    Create an objects

     dictionary= PyDictionary()
     root=Tk()

Step-3:

    set Geometry

    root.geometry("400x400)

Step-4:

     Create Method for processing

    meaning.config(text=dictionary.meaning(word.get( ))['Noun'][0])

Step-5:

    Create 4 frames 

    frame=Frame(root)
    frame1=Frame(root)
    frame2=Frame(root)
    frame3=Frame(root)

Step-6:

    Execution

    $python dictionary.py

Output:






To Download Overall Source Code for above Project





Note:
    Hello Guys, Don't Stop Learning keep Going..............















Popular posts from this blog

Shutdown, Restart, Logout System Using Python GUI

  Shutdown, Restart, Logout System Using Python GUI:        We Can Shutdown, Restart, Logout A computer Using Python GUI.  Python with tkinter is the fastest and easiest way to create the GUI applications. Creating a GUI using tkinter is an easy task. Step-1:      importing modules          from tkinter import *     import os Step-2:      User Define Functions for execute Shutdown, Restart, Logout          def shutdown():           return os. system("shutdown -s -t 1")      def restart(): return os. system("shutdown -r -t 1")      def logout(): return os. system("shutdown -l") Step-3:      Create tkinter Object and setup geometry    master=Tk()     master. geometry("200x200") Step-4:     Setting Background to grey    master.c onfigure(bg='light gr...

Python Program to Convert Hectare to Acre

             Python Program to Convert Hectare to Acre       Generally 1 hectare = 2.471 acres. It is used find the area of the lands or farming. It is comes under unit conversions.       Input:          1      Out put:           2.471044            Explanation :                    Generally 1 hectare = 2.471044 acres                       Code:          hectare=int(input())           print(hectare*2.471044)           Note:     Hello Guys, Don't Stop Learning keep Going..............

Python Program to Check whether a character is a Vowel or Consonant

                  Python Program to Check whether a character is a Vowel or Consonant   In this we are going to learn given character is vowel or Consonant. Generally there are 5 vowels they are a,e,i,o,u and remaining are the consonants in alphabets of 26. we can write this program by using strings. string is a collection of characters.         Input:        k      Out put:           Consonant                Explanation :             vowels={a,e,i,o,u,A,E,I,O,U}          if input character in the above list then vowels, else consonant                   Code:         r=input()       # input string         s="aeiou"    ...