Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Dunder Main!
You have completed Dunder Main!
Preview
Review one possible solution for the dunder main challenge.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
In alphabet.py here,
I took this example word_list and
0:00
I moved it down inside of Dunder main,
so that I could use it to test my code.
0:02
I then created a function that I
called first_alpha where I pass in
0:08
the list as a parameter called words.
0:13
And I use the min function to return
the first word alphabetically.
0:16
Now, if you didn't know already, letters
were kind of like numbers in Python.
0:23
So for example,
a B would be greater than an A,
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up