题解 | #自动售卖饮料机#
自动售卖饮料机
http://www.nowcoder.com/practice/a1f001becb0248c1a264c6643d0d640c
print( 'What kind of drink would you like?' )
kind_of_drink=str(input())
if kind_of_drink=='cola':
print( 'Below is your %s. Please check it!'%kind_of_drink )
else:
print( 'The %s has been sold out!'%kind_of_drink )
kind_of_drink=str(input())
if kind_of_drink=='cola':
print( 'Below is your %s. Please check it!'%kind_of_drink )
else:
print( 'The %s has been sold out!'%kind_of_drink )