Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python to 10-year-olds
#1
Hi there,

I'm teaching a couple of kids Python an hour a week. When I started we would do simple little exercises like 'guess the number' or even 'hangman'. Slowly we have moved to more advanced tasks e.g. involving Tkinter.

My issue is that most pieces of code I come across are longer and would take several weeks if they were to type it all and its quite a laborious task.
If I would give them the code typed up it would hardly be teaching them new information.

Can anyone suggest how to go about this so my lessons are interesting and effective?
All suggestions welcome!
Reply
#2
google "teach python to kids"
will give you quite a list of resources.
Reply
#3
As Larz60+ suggested search is your best friend. In my opinion tkinter is the easiest gui to learn. Could start with:

1. basic window
import tkinter as tk
root = tk.Tk()
root.mainloop(
2. Labels
import tkinter as tk
root = tk.Tk()
label = tk.Label(root, text='My Label')
label.pack()
root.mainloop()
3. Buttons
import tkinter as tk
button = tk.Button(root, text='My Button')
button.pack()
root.mainloop()
4. Add commands to the buttons
5. Call functions with buttons

The list goes on and on
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#4
IMHO: if you want to teach the kids a simple to use GUI with quick results, I'd start them with EasyGui and move on to a more advanced GUI (such as Tkinter) as and when. That way they'll see a working GUI in no time flat, rather than pushing the potential limits of their attention span.
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply
#5
It depends on the age of the children you are teaching. Some kids don't pick it up very quickly, possibly because of their age. <url snipped>
Gribouillis write Jun-09-2023, 09:11 AM:
Off-site promotion link snipped. Please read What to NOT include in a post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running three-year old python code ErnestTBass 4 2,563 Jun-19-2020, 02:46 PM
Last Post: snippsat
  [split] the best python teaching program for an 8 year kid? ThomasMoore 2 2,394 Apr-16-2019, 09:12 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020