Coder Social home page Coder Social logo

pythonmodules's Introduction

to do

[] finish tests

[] test manually everything

[x] check forbidden functions and add them to tests

[] clean this readme

Ressources

about conda:

The conda.sh script downloads miniconda, installs it in a /goinfre subfolder and creates a python environment in conda

check 42AI Python environment:

conda info --envs
conda activate 42AI-$USER
which python
python -V
python -c "print('Hello World!')"

cheatsheet for conda: https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf

metapackage https://stackoverflow.com/questions/50699252/anaconda-environment-installing-packages-numpy-base

export and import https://stackoverflow.com/questions/41979133/import-conda-package-list-to-default-env

about Python

if __name__ == "__main__" https://www.journaldunet.fr/web-tech/developpement/1202931-python-qu-est-ce-que-produit-le-code-if-name-main/

check the norm with pycodestyle: pycodestyle ex0*/*.py

about yield:

yield operator is like a return that gives values multiple times and let's you use the function in a for loop.
For example:

def iterate_user_ids():
    # Let's imagine this is a web API, not a range()
    for i in range(100):
        yield i

for i in iterate_user_ids():
    print(i)

would print each of the "user IDs" (here it's just the numbers from 0 to 99).

pythonmodules's People

Contributors

mel-louie 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.