-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the currency change api and added the button for it and changes…
… CSS
- Loading branch information
Showing
7 changed files
with
228 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
def get_convert_price_to_canadian(price_usd): | ||
# Current exchange rate from USD to CAD | ||
exchange_rate = 1.38 # Example rate, replace with actual rate | ||
# Convert price to CAD | ||
exchange_rate = 1.38 | ||
price_cad = price_usd * exchange_rate | ||
|
||
return price_cad | ||
|
||
|
||
print(price_cad) | ||
return round(price_cad, 2) # Assuming you want to round to 2 decimal places | ||
|
||
def get_convert_price_to_indian(price_usd): | ||
# Current exchange rate from USD to INR | ||
exchange_rate = 83.60 # Example rate, replace with actual rate | ||
# Convert price to CAD | ||
exchange_rate = 83.60 | ||
price_inr = price_usd * exchange_rate | ||
return price_inr | ||
print(price_inr,"INR PRICE") | ||
return round(price_inr, 2) |
Oops, something went wrong.