본문 바로가기
Programming

[Python] Day 16

by 그렉그의 2023. 2. 23.

making bibimbap with python

def make_bibimbap(rice):
  return f"{rice}+rice"

def put_gogi(gogi):
  return f"{gogi}+gogi"

def put_gochujang(gochujang):
  return f"{gochujang}+gochujang"

bibimbap=make_bibimbap("hyunmi")
gogi_bibimbap=put_gogi(bibimbap)
final_bibimbap=put_gochujang(gogi_bibimbap)

print(final_bibimbap)



def make_juice(fruit):
  return f"{fruit}"

def put_ice(juice):
  return f"{juice}+4"

def put_sugar(iced_juice):
  return f"{iced_juice}+2"

juice = make_juice("mango")
cold_drink = put_ice(juice)
the_juice=put_sugar(cold_drink)

print(the_juice)

 

 

winner= 10

if (winner>10):
  print(11)
elif (winner<10):
  print(9)
else:
  print(!0)

 

age = int(input("what's the age"))

if (age>=19):
  print("you can drink")

elif (age<=19 and age>35):
  print("drink beer")
else:
  print("you can't drink")

'Programming' 카테고리의 다른 글

[CS50, Javascript] Day 15  (0) 2023.02.22
[Javascript] Day 14  (0) 2023.02.20