파이썬
요리로 배우는 파이썬 if else 조건문 달고나편 Making Dalgona racipe Python programming
artra
2023. 2. 19. 20:26
반응형

#Making Dalgona racipe programming
#Python ver3,9
#Pycham ver22.2
#needs
Sugar = Tea_spoonX6 = 1
BakingSoda = half_a_teaspoon_of_Sodium_bicarbonaten = 1
ladle = 1
Chopsticks = 1
Low_fire = 1
#Direction
STEP_1 = Add_sugar_to_ladle = Sugar + ladle
if STEP_1 != 2:
print('FAIL')
else:
STEP_2 = Stir_until_sugar_dissolves = STEP_1 + Chopsticks + Low_fire
if STEP_2 != 4:
print('FAIL')
else:
STEP_3 = stir_until_bubbly = (STEP_2 + BakingSoda + Chopsticks) - Low_fire
if STEP_3 != 5:
print('Fed up')
else:
print('It Tastes Good')
|
cs |
반응형