def greet(name = 'Jack', time = 'morning'):
print(f'Good {time} {name}, hope you are well')
name = input('enter your name : ')
time = input('enter the time of day : ')
greet(name = 'Mel')
greet(time = 'night')
greet(name, time)
def area(radius):
return 3.142 * (radius ** 2)
def vol(area, height):
print(area * height)
radius = int(input('enter a radius : '))
height = int(input('enter a height : '))
vol(area(radius), height)
참고
https://www.youtube.com/watch?v=l0E1tK-O8ew&list=PL4cUxeGkcC9idu6GZ8EU_5B6WpKTdYZbK&index=12