Create a quick Component Playground in your next project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
FORMAT = "%Y-%m-%d" | |
def calculate_price(closing_date, visit_date, original_price): | |
closing_date = datetime.strptime(closing_date, FORMAT) | |
visit_date = datetime.strptime(visit_date, FORMAT) | |
if visit_date > closing_date: # no discount if visit is after closing | |
return original_price |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// process <<< Capitalize the P and error is GONE | |
export const rabbit = () => { | |
return import(`./empty.js`); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
dist | |
yarn.lock |