Skip to content

Commit

Permalink
Day 7
Browse files Browse the repository at this point in the history
  • Loading branch information
phankins99 committed Jun 5, 2022
1 parent 6d92c21 commit 28d3a13
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
24 changes: 24 additions & 0 deletions Day 7/main.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 28d3a13

Please sign in to comment.