#100DaysOfCode: Python Day 10

#100DaysOfCode: Python Day 10

Functions With Outputs

ยท

1 min read

#100DaysOfCode Day 10

๐Ÿงฎ I CREATED MY OWN CALCULATOR APP! ๐Ÿงฎ
CLICK HERE and press "Run" to try it out.
Screenshot 2021-05-21 at 02.03.19.png

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

  1. Sometimes you just got to get hyped to learn!

TO THE CODE!!!

fucntionsWithOutputs.py

# 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.