esult.set("Invalid input!
")
Set up window
app = tk.Tk()
app.title("Simple Calculator")
UI elements
tk.Label(app, text="First Number").pack()
entry1 = tk.Entry(app)
entry1.pack()
tk.Label(app, text="Second Number").pack()
entry2 = tk.Entry(app)
entry2.pack()
operation = tk.StringVar()
tk.Label(app, text="Choose Operation (+ - * /)").pack()
tk.Entry(app, textvariable=operation).pack()
tk.Button(app, text="Calculate", command=calculate).pack()
result = tk.StringVar()
tk.Label(app, textvariable=result).pack()
app.mainloop()
```
💡 You just built your first GUI App in Python!
---
🔧 Step 5: Tools You Can Use
- VS Code – for coding (lightweight and easy)
- Thonny – beginner-friendly Python IDE
- PyInstaller – turns your Python script into a real app (.exe file)
---
🚀 What Can We Build Next?
Here are beginner-friendly projects you can try next:
- ✅ To-Do list app
- ✅ Flashcard/quiz app
- ✅ Countdown timer
- ✅ BMI calculator
- ✅ Currency converter
---
💬 Let me know which type of app you want to build next, and I’ll guide you step-by-step (with
explanation and code). We’ll level up together! 😎🔥
Would you like to build a To-Do List App next?