Giter Site home page Giter Site logo

randyaajr / ra-modules-packages-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.65 MB

This challenge demonstrates how to download packages locally by creating a virtual environment.

Python 100.00%
python python3 env python-packages python-package-example colorama-librairy python-challenge

ra-modules-packages-demo's Introduction

Python Virtual Environment and Packages (Challenge 2)


This challenge demonstrates how to download packages locally by creating a virtual environment. All packages downlaoded are located in a sub folder named 'env'. I created a simple program which takes in a max amount of numbers from the user then calculates the sum of all numbers inputted. The final sum is then divided by the total number of inputs (max amount). This then outputs the average. Colorama has been imported to add some style to the terminal's output.

Activation

PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo> env\scripts\activate

Notice that (env) is now visable in the terminal. This confirms the activation.

(env) PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo>

Colorama Installation

(env) PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo> pip install colorama

Challenge Requirements

First Task (MS VS Code Terminal Window or PowerShell):

  • You will create a virtual environment (notice that virtual environment or venv is a just a local folder that has to be created inside your main project folder) using any name you prefer.
  • After creating your virtual environment or venv, you will need to activate it.
  • Install the required package, for this challenge we can use the same package called “colorama”, but feel free to use another one.
  • Try to find the official page for this package.

Second Task (Your python code, applying colorama to your print message):

  • From colorama import ???
  • Use any color…
  • You can refer to my folder “Anmar-Modules-Packages-Demo” for more details

Requirements

certifi==2020.11.8
chardet==3.0.4
colorama==0.4.4
idna==2.10
urllib3==1.26.2

Colorama Project Link - PyPi.org

ra-modules-packages-demo's People

Contributors

randyaajr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.