statuscode
-
11/27: TIL | python basics: 주스만들기 functions, 카지노 랜덤번호 맞추기 if while for, 웹사이트 상태 dictionaryToday I Learned/Python 2022. 11. 27. 23:58
def function(params): f"{params}" - 주스만들기: 과일 + 설탕 + 얼음 = 주스 def juice_maker(fruit): return f"{fruit}+🧃" def add_sugar(sugar): return f"{sugar}+🍭" def add_ice(ice): return f"{ice}+🧊" juice = juice_maker("🍎") sweet_juice = add_sugar(juice) cold_juice = add_ice(sweet_juice) print(cold_juice) #--> 🍎+🧃+🍭+🧊 if, elif, else age = int(input("How old are you?")) # print("user age", age) if age < 18: prin..