Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
1.2 kB
4
Indexable
Never
def take_delivery_details():
    
    #customer name 
    customer_name = input ("Enter Customer's name:")

   

    #decide the delivery method 
    print("Please choose delivery method.")
    print("A. Store Pickup.")
    print("B. Delivery Service.")
    delivery_method=input("Enter your option(A or B):")

    #print according to the method 
    if delivery_method.upper()=="A":
       print("Thank you for providing the following details.")
       pickup_date= input("Please enter the desire pickup date and time (DD-MM-YYYY  HH:MM AM/PM): ")
       print ("Customer Name:",customer_name)
       print("Pickup Date and Time:", pickup_date)
       print("Thanks for your order ......")
    else:
    
        delivery_address = input("Please enter the delivery address:")
        delivery_postalcode=input("Please enter a postal code:")
        # delivery_date= input("Please enter the desire delivery date (DD-MM-YYYY): ")
        print("Thank you for providing the following details:")
        print("Customer Name:",customer_name)
        print("Delivery Address:", delivery_address)
        # print("Desire Delivery Date:", delivery_date)
        print("Thanks for your order.....")
    
    


take_delivery_details()