Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #create a function called greet()
- #Write 3 print statements inside the function
- #call the greet() function to run your code
- #
- # def greet():
- # print("Hello!")
- # print("Howdy")
- # print("yo!")
- # greet()
- # #Parameter: Name of data passed in
- # def greet_(name):
- # print(f"Hello {name}")
- # print(f"How do you do {name}?")
- # #Argument: Value of the data passed in
- # greet_("Johnny")
- # greet_("John")
- # greet_("Angela")
- def hellos(name, location):
- print(f"Hello {name}")
- print(f"How is the weather in {location}")
- hellos("Johnny", "Ohio")
- hellos(location="Ohio", name="Johnny")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement