[Intro Music]
We have just successfully launched
our tiny Python application using a
python container. And here is
command that was used for that,
'docker', it means that we run
command from Docker client; 'run', we
run specific container; '-i'
and '-t' options tell that we
open interactive session with pseudo-TTY
to specific process inside of
the container, and that is 'python3'
process, next we map
volume, here we use the variable
and here inside of the container,
we have specified that we want to
map this volume to 'app' folder
inside of the container. Also, we
have specified the working
directory inside of the container.
Next here is image name. And
finally, we have overridden default
command, default command is 'python3',
and we have told the in this
command that we want to execute
this file using 'python3'
instead. And we have got the
result. And now it's challenge
time. It doesn't matter actually,
whether you know Python or not,
this challenge is very simple and
you will be able to accomplish it
for sure. Just do some research,
and afterwards create custom
application. Name of this
application is calendar, and you
need to create a new file inside of
the 'python' folder with name
'calendar-app.py'. And you will run
this 'calendar-app.py' file
using Python3 interpreter, same
as we did with 'hello-world.py' file,
it means that if I clear
terminal, you will need to execute
this file like so, instead of hello-
world, will be calendar-app, and
if you run this file, you will see
following prompt, 'Welcome to the
Calendar application!', and next you
will see prompt, 'Please enter any
year:' . Let me enter for example 2025
like so. Next, 'Please enter any
month number:', from 1 till 12. Let's
enter 10. And after getting those
two numbers from input 2025 is the
year, and 10 is the month number;
this program will print
such month view, it is October
2025 in my case. And afterwards it
will print 'Have a nice day!', and
terminate process. And of course
afterwards, if I list the
containers that are currently
running, I will see empty output
because this container did its job,
and it was terminated. Small hint
for this tiny program you will need
to use the 'calendar' module that is
actually built into the Python
module. I wish you good luck, and
next I'll give you a solution to
this challenge. See you next. Bye-Bye.
[no audio]