Skip to main content

Command Palette

Search for a command to run...

Day 3: functions with inputs

Updated
1 min read
Day 3: functions with inputs
A

Hi there! I’m a passionate learner who loves exploring Python's endless possibilities. Over the past years, I’ve immersed myself in coding, honing my skills by tackling diverse projects that combine creativity and problem-solving.

From building a modern rendition of the classic Asteroids game in Python to experimenting with data visualization and automation, I thrive on turning ideas into reality through code.

Follow along as I learn, grow, and share my journey!

pexels-диана-дунаева-10097201.jpg Today, I practiced functions with inputs and learned the difference between

  1. Parameters
def greet(a,b,c): # a, b, and c are the parameters
          print(a)
          print(b)
          print(c)
  1. Positional Arguments
greet(1,2,3) # 1, 2, and 3 are the arguments - the values (positional arguments)

and

  1. Keyword Arguments
greet(c=4,b=5,a=6) # the function being invoked with keyword arguments

Tomorrow, I'll use this skill to work on an implementation of the Caesar Cipher.

#100DaysOfCode

Follow me on Twitter at AllieNicole903