Python Basics:

Setting Up Your Development Environment:

  • Install Python:
    • Download and install the latest version of Python from the official website: https://www.python.org/downloads/
    • Make sure to check the box to add Python to your PATH during installation.
  • Choose a Code Editor:
    • Visual Studio Code (VS Code): A popular and beginner-friendly code editor with excellent Python support. Download it here: https://code.visualstudio.com/
    • PyCharm: A powerful IDE with many features, but might be a bit overwhelming for beginners.
  • Virtual Environments:
    • Open your terminal or command prompt.
    • Navigate to your project directory.
    • Create a virtual environment: python -m venv my_env
    • Activate the environment:
      • Windows: my_env\Scripts\activate
      • macOS/Linux: source my_env/bin/activate
    • Install Libraries:
      • Install the necessary libraries for interacting with external API and managing environment variables:
        Bash
        pip install XXX python-dotenv

Remember:

  • Learning Resources: Continuously learn and expand your Python skills to implement more complex features.
  • Experimentation: Be creative and experiment with different approaches to build projects that meets your specific needs and goals.
  • Community: Don't be afraid to seek help from the Python community if you get stuck.

DATA TYPES:







OBJECTS: TYPES, CLASSES




TUPLES: (...)











KEYS (INDEX) vs ELEMENTS (DATA):



















LOGIC OPERATORS:==,!,>,<,IF,ELSE,ELIF 





FOR:



WHILE:



IF:




IF ELSE:



IF ELIF ELSE:







FUNCTIONS:







VARIABLES: LOCAL vs GLOBAL








LISTS: [...]


















LISTS: ENUMERATION





DICTIONARIES: {...}











SETS: {...}













CLASS: SELF PARAMETERS, DATA ATTRIBUTES


















IMPORTING DATA:














PANDAS:





SLICING  DATAFRAMES:














NUMPY:







1D ARRAYS:




















2D ARRAYS:









APIs





References:
https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-0001-introduction-to-computer-science-and-programming-in-python-fall-2016/
https://courses.edx.org/courses/course-v1:IBM+PY0101EN+3T2020/course/
Powered by Blogger.