From 28d3a13b56a53b535c3955a58b247d7c6c83e55d Mon Sep 17 00:00:00 2001 From: Piblo Date: Sat, 4 Jun 2022 21:11:01 -0500 Subject: [PATCH] Day 7 --- .ipynb_checkpoints/Untitled-checkpoint.ipynb | 6 +++++ Day 7/main.py | 24 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .ipynb_checkpoints/Untitled-checkpoint.ipynb create mode 100644 Day 7/main.py diff --git a/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 0000000..363fcab --- /dev/null +++ b/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Day 7/main.py b/Day 7/main.py new file mode 100644 index 0000000..cbd861d --- /dev/null +++ b/Day 7/main.py @@ -0,0 +1,24 @@ +def my_print(txt): + print(txt) + + +msg_template = """Hello {name}, +Thank you for joining {website}. We are very +happy to have you with us. +""" # .format(name="Justin", website='cfe.sh') + +def format_msg(my_name="Justin", my_website="cfe.sh"): + my_msg = msg_template.format(name=my_name, website=my_website) + # print(my_msg) + return my_msg + +""" +"{} {}".format("abc", 123) +"{1} {0}".format("abc", 123) +"{name} {number}".format(name="abc", number=123) +"{} {name} {number}".format("another", name="abc", number=123) +""" + + +def base_function(*args, **kwargs): + print(args, kwargs) \ No newline at end of file