12 Oct 2022

Posted on:

11 Oct 2022

0

# Are the Practical Exercises answered anywhere in this section?

The course files include exercises for this section as follows:

# Exercises

'''
Question 1
Create a function that will calculate the sum of two numbers. Call it sum_two.
'''

'''
Question 2
Write a function that performs multiplication of two arguments. By default the
function should multiply the first argument by 2. Call it multiply.
'''

'''
Question 3
Write a function to calculate a to the power of b. If b is not given
its default value should be 2. Call it power.
'''

'''
Question 4
Create a new file called capitals.txt , store the names of five capital cities
in the file on the same line.
'''

'''
Question 5
Write some code that requests the user to input another capital city.
Add that city to the list of cities in capitals. Then print the file to
the screen.
'''

I don't see these answered in any of the videos in the course. There is a solution page, so I can look up the answers for myself but its very helpful to have them explained. Just wanted to point this out in case its an error. Really enjoying the course, thanks Giles and 365!

Instructor
Posted on:

12 Oct 2022

0

Hey Kenzie,

Thank you for reaching out! We are happy you are enjoying the Python Programmer Bootcamp course!

Many of the lectures in the course feature a file with exercises which allows students to practice their knowledge in an unassisted manner. These exercises don't have a corresponding video with explanations. Rather, a file with example solutions is provided. Very often, programming tasks can be tackled in many different ways. It is therefore important to solve the exercises independently first and refer to the solutions only if needed.

If you experience trouble and can't understand the logic behind a given solution, feel free to search through the Q&A hub where an answer to your problem might be given. If not, then open a thread here in the hub and either an instructor, or a fellow student would help you out in solving the problem.

Hope this helps!

Kind regards,
365 Hristina