#100DaysOfCode Day 10
๐งฎ I CREATED MY OWN CALCULATOR APP! ๐งฎ
CLICK HERE and press "Run" to try it out.
Yesterday I learned how to use functions with outputs. I feel like I am ready to hit the ground running. The basics were easy and fun to learn.
Lessons
- Sometimes you just got to get hyped to learn!
TO THE CODE!!!
# Function With Outputs
# def my_function(Something):
# #Do this with something
# #Then do this
# #Finally do this
def my_function():
return 3 * 2
#Use """ to create a docstring - Works in Replit but not VS Code
def format_name(f_name, l_name):
"""Take the first and last name in any format and return it in title case."""
if f_name == "" or l_name == "":
return "You did not provide valid inputs!"
return f"{f_name.title()} {l_name.title()}"
print(format_name("rishAl", "VALLabh"))
format_name()
I am 1/10th of the way through the 100 days of code challenge ๐ฅณ. At this stage, I can say that I can write basic python code! I am very excited to learn more about how and where I can use Python.