Skip to content

Commit cf0d78a

Browse files
committed
added the conditions
1 parent 3169670 commit cf0d78a

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

Day-04/virtual-environment-setup.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
virtual environment in python, logical separation on machine
2+
same machine for different projects
3+
pip3 install virtualenv
4+
python3 -m venv project-arbitary
5+
source project-arbitary/bin/activate
6+
deactivate

Day-04/virtual-environment.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

Day-07/test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
type = sys.argv[1]
3+
if type == "t2.micro": # == comparison operator
4+
print("it will charge you $2 a day")
5+
elif type == "t2.medium":
6+
print("it will charge you $3 a day")
7+
elif type == "t2.xlarge":
8+
print("it will charge you $4 a day")
9+
else:
10+
print("please, provide a valid instance type")

0 commit comments

Comments
 (0)