Jumble Word Game with GUI using Python | Fun Beginner Python Project!

Veröffentlicht am: 25 Juni 2025
auf dem Kanal: HARSHA
34
6

Welcome to this fun and beginner-friendly Python project! In this video, we'll build a Jumble Word Game using Tkinter GUI. It's a simple word puzzle where players unscramble letters to guess the correct word.

🎮 What you'll learn: ✅ Basic GUI with Tkinter
✅ Shuffling words using Python logic
✅ Handling input and buttons
✅ Checking correct answers
✅ Keeping track of score

Perfect for Python beginners looking to practice GUI development and game logic in a fun way!

📌 Tools Used:

Python (3.x)

Tkinter (for GUI)

random module

*******************CODE********************
import random
tkinter : use for GUI
import tkinter as tk
from tkinter import messagebox

word_list = ["python", "engineering", "computer", "message", "library", "terminal", "science","cyber","assignment","organization"," algorithms"," management"," programming"]

def choose_word():
word = random.choice(word_list)
return word

def jumble_word(word):
return "".join(random.sample(word, len(word)) )

GUI setup
root = tk.Tk()
root.title("Jumble word game")
root.geometry("400x300")



score = 0
current_word = choose_word()
jumbled_word = jumble_word(current_word)

widgets
label = tk.Label(root, text = f"unscramble this word \n {jumbled_word}" , font=( "arial" ,16))
label.pack(pady=20)

pady = padding in y direction

entry = tk.Entry(root, font=("arial", 14))
entry.pack(pady=10)

score_label = tk.Label(root, text =f"SCORE:{score}", font = ("Arial",12))
score_label.pack()

def check_answer():
global score , current_word, jumbled_word

answer =entry.get()
if answer.lower() == current_word :
score +=1

messagebox.showinfo("correct", "well done")

else :
messagebox.showerror(f"wrong answer","The correct word is {current_word}")

score_label.config(text=f"SCORE:{score}")
entry.delete(0, tk.END)
current_word = choose_word()
jumbled_word = jumble_word(current_word)
label.config(text= f"unscramble this word \n {jumbled_word}")

submit button
btn = tk.Button(root, text ="SUBMIT", command=check_answer, font =("Arial",12))
btn.pack(pady=10)

root.mainloop()

------------------------------------------------------------------------

🔔 Don’t forget to like, share, and subscribe for more Python projects and tutorials!

#python #pythonproject #tkinter #beginnerpython #jumblegame #programming


Auf dieser Seite können Sie das Online-Video Jumble Word Game with GUI using Python | Fun Beginner Python Project! mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer HARSHA 25 Juni 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 34 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!