<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Python Crash Course Exercises
This is an optional exercise to test your understanding of Python Basics. If you find this extremely challenging, then you probably are not ready for the rest of this course yet and don't have enough programming experience to continue. I would suggest you take another course more geared towards complete beginners, such as Complete Python Bootcamp
Exercises
Answer the questions or complete the tasks outlined in bold below, use the specific method described if applicable.
 What is 7 to the power of 4?
Step1:  Split this string
Step2:  Given the variables
Step3:  Given this nested list, use indexing to grab the word "hello"
Step4:  Given this nested dictionary grab the word "hello". Be prepared, this will be annoying/tricky
Step5:  What is the main difference between a tuple and a list?
Step6:  Create a function that grabs the email website domain from a string in the form
Step7:  Create a basic function that returns True if the word 'dog' is contained in the input string. Don't worry about edge cases like a punctuation being attached to the word dog, but do account for capitalization.
Step8:  Create a function that counts the number of times the word "dog" occurs in a string. Again ignore edge cases.
Step9:  Use lambda expressions and the filter() function to filter out words from a list that don't start with the letter 's'. For example
Step10:  Final Problem
You are driving a little too fast, and a police officer stops you. Write a function
  to return one of 3 possible results
Step11:  Great job!
<ASSISTANT_TASK:>
Python Code:
7**4
Explanation: Python Crash Course Exercises
This is an optional exercise to test your understanding of Python Basics. If you find this extremely challenging, then you probably are not ready for the rest of this course yet and don't have enough programming experience to continue. I would suggest you take another course more geared towards complete beginners, such as Complete Python Bootcamp
Exercises
Answer the questions or complete the tasks outlined in bold below, use the specific method described if applicable.
 What is 7 to the power of 4?
End of explanation
s = "Hi there Sam!"
s.split()
Explanation: Split this string:
s = "Hi there Sam!"
into a list.
End of explanation
planet = "Earth"
diameter = 12742
print("The diameter of {} is {} kilometers.".format(planet,diameter))
Explanation: Given the variables:
planet = "Earth"
diameter = 12742
 Use .format() to print the following string: 
The diameter of Earth is 12742 kilometers.
End of explanation
lst = [1,2,[3,4],[5,[100,200,['hello']],23,11],1,7]
lst[3][1][2]
Explanation: Given this nested list, use indexing to grab the word "hello"
End of explanation
d = {'k1':[1,2,3,{'tricky':['oh','man','inception',{'target':[1,2,3,'hello']}]}]}
Explanation: Given this nested dictionary grab the word "hello". Be prepared, this will be annoying/tricky
End of explanation
# Tuple is immutable
na = "user@domain.com"
na.split("@")[1]
Explanation: What is the main difference between a tuple and a list?
End of explanation
def domainGet(name):
    return name.split("@")[1]
domainGet('user@domain.com')
Explanation: Create a function that grabs the email website domain from a string in the form: 
user@domain.com
So for example, passing "user@domain.com" would return: domain.com
End of explanation
def findDog(sentence):
    x =  sentence.split()
    for item in x:
        if item == "dog":
            return True
       
        
findDog('Is there a dog here?')
Explanation: Create a basic function that returns True if the word 'dog' is contained in the input string. Don't worry about edge cases like a punctuation being attached to the word dog, but do account for capitalization.
End of explanation
countDog('This dog runs faster than the other dog dude!')
Explanation: Create a function that counts the number of times the word "dog" occurs in a string. Again ignore edge cases.
End of explanation
seq = ['soup','dog','salad','cat','great']
Explanation: Use lambda expressions and the filter() function to filter out words from a list that don't start with the letter 's'. For example:
seq = ['soup','dog','salad','cat','great']
should be filtered down to:
['soup','salad']
End of explanation
def caught_speeding(speed, is_birthday):
    if s_birthday == False:
    if speed <= 60:  
        return "No ticket"
    elif speed >= 61 and speed <=80:
        return "small ticket"
    elif speed >81:
        return "Big ticket"
    else:
        return "pass"
caught_speeding(81,False)
caught_speeding(81,False)
lst = ["7:00","7:30"]
Explanation: Final Problem
You are driving a little too fast, and a police officer stops you. Write a function
  to return one of 3 possible results: "No ticket", "Small ticket", or "Big Ticket". 
  If your speed is 60 or less, the result is "No Ticket". If speed is between 61 
  and 80 inclusive, the result is "Small Ticket". If speed is 81 or more, the result is "Big    Ticket". Unless it is your birthday (encoded as a boolean value in the parameters of the function) -- on your birthday, your speed can be 5 higher in all 
  cases.
End of explanation
lst
type(lst)
type(lst[1])
Explanation: Great job!
End of explanation
<END_TASK>