Skip to content
Merged
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
13 changes: 13 additions & 0 deletions contition handling.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import sys

type = sys.argv[1]

if type == "t2.micro":
print("this will charge u 2 $ per day")
elif type == "t2.medium":
print("this will charge u 4 $ per day")
elif type == "t2.large":
print("this will change u 8 $ per day")
else:
print("please provid a valid instance type")