Print (" welcome to Courier a system!" )
Weight=int (input (" please enter the integer weight (kg) : "))
Area=int (input (" please enter the area number (1:2: other northeast, ningxia, qinghai, hainan 3: xinjiang, Tibet 4: Hong Kong, Macao and Taiwan and overseas) : "))
If weight & gt;=1 and 1 & lt;=area & lt;=4: print (" first heavy + sequel ") add_weight=int (weight - 1) if area=="1" : print (" need to charge Courier fee (RMB) : ") print (add_weight * 5 + 10) elif area=="2" : print (" need to charge Courier fee (RMB) : ") print (add_weight * 10 + 12) elif area=="3" : print (" need to charge Courier fee (RMB) : ") print (add_weight * 15 + 20) elif area=="4" : print (" please contact head office!" ) # else: # print (" input error!" )
Elif 0 & lt; Weight & lt; 1 and 1 & lt;=area & lt;=4: print (" the first heavy + renewal ") if area=="1" : print (" need to charge Courier fee (RMB) : 10 ") elif area=="2" : print (" need to charge Courier fee (RMB) : 12 ") elif area=="3" : print (" need to charge Courier fee (RMB) : 20 ") elif area=="4" : print (" please contact head office!" ) # else: # print (" input error!" )
The else:
Print (" input error!" )