Thank you for your interest. This is meant to prepare your environment prior to your coding exercise. |
- Latest Python 3 installed. Get it here
- Download or clone this repo.
- Your choice of IDE.
- Launch command line terminal
win+r
thencmd.exe
or launch Terminal in macOS. - Enter where this directory is located
cd path\to\dir\bcny-interview-python
-
Verify Python is installed
Windows Example:* Note that your environment command may beC:\bcny-interview-python> python --version
Python 3.12.3python3 --version
instead. -
Create a virtual environment
Windows Example:C:\bcny-interview-python> python -m venv .venv
-
Enter the virtual environment
Windows Example:
If you've opened PowerShell instead of Windows command line, you can enter venv this way:C:\bcny-interview-python> C:\bcny-interview-python\.venv\Scripts\activate
(venv) C:\bcny-interview-python>
Windows PowerShell Example:Linux / macOS Example:C:\bcny-interview-python> .\.venv\Scripts\activate
(venv) C:\bcny-interview-python>~/bcny-interview-python$ .venv/bin/activate
(venv) bcny-interview-python$ -
Verify Python can run
Windows Example:Linux / macOS Example:(venv) C:\bcny-interview-python> python hello_world.py
Hello Arc!(venv) bcny-interview-python$ python hello_world.py
Hello Arc!
- Download and install Pycharm here
- Launch PyCharm
- Select
Open
- Navigate to the downloaded
bcny-interview-python
folder and open it. - Click on the file
hello_world.py
in the Sidebar - Click on top corner run menu and select
Edit Configurations...
- Click the plus button
+
and choosePython
- Enter
hello_world
as name, verify Run is on the Python venv that was created earlier, script is set to thehello_world.py
path and working directory is set to the current directory. PressOK
- Click the green play button. Verify script is run and
Hello Arc!
is printed