Create the Main Module
00:00 For the next part of the challenge, you need to create a new file.
00:05
And in this file, we can paste the tasks that we need to do. First, in the package_exercises/
folder, create a module called main.py
that imports the string
and the calc
modules.
00:18
And you should use string.shout()
and calc.area()
to print the following output: THE AREA OF A 5-BY-8 RECTANGLE IS 40
, and that’s all in uppercase.
00:32
So there is a bit of work that you need to do here, but again, with this nice little comment task list, you can tackle it bit by bit. The first part is in the package_exercises/
folder, create a module called main.py
.
00:47
This file doesn’t exist yet, so create it by saving this new file. And now it’s important to not save it in the helpers
package, but in the parent folder, which is named project_exercises/
.
01:07
and then at the beginning of the file, so you know where you are, you can add # main.py
as a comment. That way you can see on the screen that we are working in the main.py
file.
01:20
And we can remove the first part of our tasks—in the package_exercises/
folder, create a module called main.py
—because we’ve done this.
Become a Member to join the conversation.