Hello everyone and welcome to the Python crash course exercise overview lecture in this lecture we get
a brief overview of the exercise notebook and how to approach the exercise.
Let me go ahead and show you where you can find the exercise notebook.
OK here I am at your repository under the python crash course folder you'll see three notebooks.
The Python crash course which contains the notes we just went over in the four part lecture series.
Then you have Python crash course exercises IPY and B.
This is the notebook file that we're going to be using for the exercises and you'll see the solution
notebook.
Here you go in and click on the exercises notebook you should see a notebook that looks like this.
And again this is just an optional exercise test your understanding of Python basics.
If you find this exercise extremely challenging then you probably aren't ready for the rest of the Course
yet and don't have enough programming experience to continue.
And I would suggest you actually take another course more geared towards complete beginners such as
the complete python boot camp.
However these exercises should be pretty simple and straightforward.
For instance this very first one is asking you what is 7 to the power of.
So hopefully you can see the answer here as output you would come to this cell or whatever ID you prefer
to use and use Python to answer this question.
So you just have to remember well how do you do an exponential power in Python.
Will keep asking you other questions such as split the string into a list so hopefully remember how
to split a string with some particular method into a list and so on.
So just go ahead.
There's output examples of what you should be getting.
Then you have a question asking what is the main difference between a tuple and a list.
This way you can just answer out loud aren't the writing I think down there's no code for this just
asking what differences.
Next I want you to create a function that grabs email Web site domain from a string and a form user
at domain dot com.
So if you have a function call it something like domain gets you should be able to pass in a string
of this format and just grab this domain dot com.
So go in and create some sort of function.
You can go out and call it domain get that takes in a string an e-mail address and returns the domain
got from the Web site that that e-mail is host to that.
Then you'll go ahead and create a basic function that returns true if the word dog is contained in the
input stream.
And I don't want you to have to worry about edge cases like punctuation being attached to the word dog
but do account for capitalization.
Again we're not dealing with every single edge case that you may find.
Just the basic idea of searching a string for a word then we want you to create a function that can
how that counts the number of times the word dog occurs in a string.
And again you can ignore edge cases.
So for instance the string this dog runs faster than the other dog dude.
DAGA Pierce twice so count dog returns to go to make a function called Count dogs do that.
They don't want you to use lambda expressions and the Filcher function to filter out words from a list
that don't start with the letter S.
So for example if you get a sequence of this list it should be filtered down to this list.
Soup and salad.
And here's a final problem.
Now you can go ahead and read the description but basically you'll go ahead and fill out this function
in order to solve this little final problem here.
And this involves some if elefant else statements along with creating a function if you have any questions
feel free to post the Q&A forums and I'll be happy to help you out.
Thanks everyone.
And coming up next is a walkthrough of the solutions to this exercise