Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Create devcontainer.json #299

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
// Name this configuration
"name": "Codespace for Skills!",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot"
]
}
}
}
17 changes: 17 additions & 0 deletions generatedWithCopilot
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
def calculate_tax(price):
if price > 50:
tax = price * 0.19
return tax
else:
return 0

def main():
price = float(input("Enter the price: "))
tax = calculate_tax(price)
if tax > 0:
print(f"The tax for the price ${price} is ${tax:.2f}")
else:
print("No tax for the price below or equal to $50")

if __name__ == "__main__":
main()