sh_08_ buy Apple improve

 

sh_08_ buy Apple improve

1  # 1. Apple monovalent prompts the user 
2 . Price = a float (INPUT ( " Apple monovalent: " ))
 . 3  
. 4  # 2 prompts the user for the weight of the apple 
. 5 weight = a float (INPUT ( " Apple weight: " ) )
 . 6  
. 7  # 3. calculate the amount 
. 8 Money. price * = weight
 . 9  
10  Print (Money)

 

Guess you like

Origin www.cnblogs.com/shaohan/p/11465064.html