diff --git a/Project/SentimentAnalyzer.ipynb b/Project/SentimentAnalyzer.ipynb deleted file mode 100644 index acad8d8..0000000 --- a/Project/SentimentAnalyzer.ipynb +++ /dev/null @@ -1,20 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# You may start here" - ] - } - ], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/Project/testing.py b/Project/testing.py new file mode 100644 index 0000000..bf59cf4 --- /dev/null +++ b/Project/testing.py @@ -0,0 +1,31 @@ +from textblob import TextBlob +import pandas as pd + +def analyzeSentiment(text): + blob = TextBlob(text) + sentiment_score = blob.sentiment.polarity + + if sentiment_score > 0: + return 'Positive' + elif sentiment_score < 0: + return 'Negative' + else: + return 'Neutral' + +df = pd.read_csv('data.csv') + +product_id = 'AVqkIhwDv8e3D1O-lebb' #or any id you want to search for + +df_product = df[df['product_id'] == product_id] + +product_name = df_product['name'].iloc[0] + +df_product['sentiment'] = df_product['reviews.text'].apply(analyzeSentiment) + +positive = (df_product['sentiment'] == 'Positive').sum() +negative = (df_product['sentiment'] == 'Negative').sum() +neutral = (df_product['sentiment'] == 'Neutral').sum() + +print(f"The product with Name {product_name} has {positive} positive reviews, {negative} negative reviews, and {neutral} neutral reviews") + +df_product.to_csv('output.csv', index=False) diff --git a/README.md b/README.md deleted file mode 100644 index 5e81b09..0000000 --- a/README.md +++ /dev/null @@ -1,244 +0,0 @@ -# ![Alt text](/readme/banner.png) - -## Table of Contents - -- [Overview](#overview) -- [Learning Objectives](#learning-objectives) -- [Resources](#resources) - - [Online Resources](#online-resources) - - [Github](#github) - - [Python](#python) -- [Setup and Tutorial](#setup-and-tutorial) -- [Project Overview](#project-overview) - - [Requirements](#requirements) - - [Submission Guidelines](#submission-guidelines) - -## Overview - -In this project, you will be creating a Sentiment Analyzer program using reviews from the given data in this repository. You will be using Python to analyze the data and Jupyter Notebooks to present your findings. - -## Learning Objectives - -- Learn how to use Git and Github. -- Learn how to use Python to analyze data. -- Learn how to use Jupyter Notebooks. - -## Resources - -### Online Resources - -#### Github - -- [Git and Github](https://www.youtube.com/watch?v=tRZGeaHPoaw) -- [Git Tutorial (w3schools.com)](https://www.w3schools.com/git/default.asp) -- [How to Use Git and GitHub – Introduction for Beginners (freecodecamp.org)](https://www.freecodecamp.org/news/introduction-to-git-and-github/) -- [Learn Git Branching](https://learngitbranching.js.org/) (Interactive tutorial) -- [Git - Basic Branching and Merging (git-scm.com)](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging) -- [Pull Requests in VS Code - YouTube](https://www.youtube.com/watch?v=LdSwWxVzUpo) - -#### Python - -- [Python Tutorial (w3schools.com)](https://www.w3schools.com/python/default.asp) -- [Python Video](https://www.youtube.com/watch?v=lk2rWa4iM68) -- [Python for Beginners (freecodecamp.org)](https://www.freecodecamp.org/news/ultimate-beginners-python-course/) -- [Provided Tutorial](./Tutorial/) - -## Setup and Tutorial - -### 1. Setup - -#### 1.1. Install Git (Windows Users Only) - -- [Download Git](https://git-scm.com/downloads) - -#### 1.2. Install Python - -##### 1.2.1. Windows (Using Chocolaty) - -- Open powershell as an administrator. - - ![Alt text](/readme/image16.png) - -- Run the following command to install Chocolaty: - -```bash -Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -``` - -- Run the following command to install Python: - -```bash -choco install python -``` - -- Check if Python is installed properly by running the following command: - -```bash -python --version -``` - -##### 1.2.2. MacOS (Using Homebrew) - -By default, python is already installed in macOS systems. However, if you want to use the latest version of python, you can install it using Homebrew. - -- Open the terminal. -![Alt text](/readme/image15.png) -- Run the following command to install Homebrew: - -```bash -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -``` - -- Run the following command to install Flutter: - -```bash -brew install python -``` - -![Alt text](/readme/image4.png) - -- Check if Python is installed properly by running the following command: - -```bash -python3.X --version -``` - -where `X` is the version of python you installed. - -#### 1.3. Install VS Code - -- [Download VS Code](https://code.visualstudio.com/download) - -#### 1.4 Fork the repository - -- Fork the repository by clicking the fork button on the top right corner of the repository page. - - Click the fork Button - - ![Image of forking the repository](./readme/image.png) - - - Name the repo and click "Create fork" - ![Alt text](/readme/image25.png) - - - You should now have a copy of the repository on your own account. - ![Alt text](/readme/image26.png) - -### Tutorial - -#### 2.1. Git - -##### 2.1.1. Clone the repository - -- Open the terminal and navigate to the directory (also known as folder) where you want to clone the repository. - - Make sure the path you choose has NO ARABIC LETTERS. This will cause errors. - - On Mac: - ![Alt text](/readme/image17.png) - - On Windows: - ![Alt text](/readme/image20.png) -- Go to the repository page on **your own account** and click on the green code button. -- Copy the link under the clone section. -![Image of github](/readme/image1.png) -- Run the following command inside of the opened terminal to clone the repository: - -```bash -git clone -``` - -Example: - -```bash -git clone https://github.com/YOUR_NAME/Selection-Project.git -``` - -![Alt text](./readme/image3.png) - -##### 2.1.2. Add changes - -- Open the repository directory in VS Code. - - The path must be INSIDE the cloned repository. - - Click on File -> Open folder - ![Alt text](/readme/image21.png) - - Select the repository folder. - ![Alt text](/readme/image22.png) - - The repository should be opened in VS Code. - ![Alt text](/readme/image18.png) - - To make sure, run the following command in the terminal INSIDE Vscode: - - ```bash - git status - ``` - - - The output should be similar to the following: - ![Alt text](/readme/image19.png) - ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - -#### You are now ready to code! Make the required changes which are given in section [Project Overview](#project-overview) and then follow the steps below to push your changes to Github. Make sure to regularly commit your changes - ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - -- Run the following command to add the changes: - -```bash -git add . -``` - -##### 2.1.3. Commit changes - -- Run the following command to commit the changes: - -```bash -git commit -m "" -``` - -##### 2.1.4. Push changes - -- Run the following command to push the changes: - -```bash -git push -``` - -![Alt text](/readme/image6.png) - -##### 2.1.5. Create a pull request - -- Go to the repository page and click on the pull request button. -![Alt text](/readme/image7.png) -- Click on the new pull request button. -![Alt text](/readme/image8.png) -- Select the branch you want to merge into the main branch. -![Alt text](/readme/image9.png) -- Click on the create pull request button. -![Alt text](/readme/image10.png) -- Add a title and description for the pull request. Title should be in the following format: ` - `. -![Alt text](/readme/image11.png) -- Click on the create pull request button. -![Alt text](/readme/image12.png) - -## Project Overview - -Your task is to create a Sentiment Analyzer program using reviews from the given data in this repository - -An example of a sentiment analyzer can be found [here](https://github.com/Radwan-Albahrani/Sentiment-Analyzer). - -### Requirements - -The notebook should contain the following: - -- A description of the project. -- A description of the dataset used. -- A description of the methods used to analyze the data. -- A description of the results. - -Some libraries that you might find useful: - -- [Pandas](https://pypi.org/project/pandas/) -- [TextBlob](https://textblob.readthedocs.io/en/dev/) - -## Submission Guidelines - -- The app should be pushed to Github and a pull request should be created. You can check how to push your code to Github in section [2.1.2 Add Changes](#212-add-changes) -- The pull request title should be in the following format: ` - `. You can check how to make a pull request in section [2.1.5. Create a pull request](#215-create-a-pull-request). -- The pull request description should contain the following: - - A description of the changes made. - - A screenshot of the app running in the terminal. diff --git a/Tutorial/.DS_Store b/Tutorial/.DS_Store deleted file mode 100644 index 7e0e80e..0000000 Binary files a/Tutorial/.DS_Store and /dev/null differ diff --git a/Tutorial/0. Introduction to Python.pdf b/Tutorial/0. Introduction to Python.pdf deleted file mode 100644 index 8094aaa..0000000 Binary files a/Tutorial/0. Introduction to Python.pdf and /dev/null differ diff --git a/Tutorial/1. Getting Started.ipynb b/Tutorial/1. Getting Started.ipynb deleted file mode 100644 index 75348f7..0000000 --- a/Tutorial/1. Getting Started.ipynb +++ /dev/null @@ -1,403 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Variables in Python\n", - "There are several different DataTypes in python. Those are:\n", - "## Integer" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "1\n", - "\n" - ] - } - ], - "source": [ - "number: int = 1\n", - "print(number)\n", - "print(type(number))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Float" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "1.0\n", - "\n" - ] - } - ], - "source": [ - "number: float = 1.0\n", - "print(number)\n", - "print(type(number))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## String" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello\n", - "\n" - ] - } - ], - "source": [ - "word: str = \"Hello\"\n", - "print(word)\n", - "print(type(word))\n", - "# word[0] = \"h\" # TypeError: 'str' object does not support item assignment" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## List Type" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['Hello', 'World', 'This', 'is', 'a', 'list']\n", - "\n", - "2224322664896\n", - "2224322664896\n", - "['New word', 'World', 'This', 'is', 'a', 'list', 'Another New word']\n", - "['First word', 'New word', 'World', 'This', 'is', 'a', 'list', 'Another New word']\n", - "['This', 'World', 'New word']\n", - "['This', 'is', 'a', 'list', 'Another New word']\n", - "['First word', 'New word', 'World']\n", - "Another New word\n", - "list\n", - "['a', 'list', 'Another New word']\n", - "['First word', 'New word', 'World', 'This', 'is']\n", - "['New word', 'World', 'This', 'is', 'a', 'list', 'Another New word']\n", - "['New word', 'World', 'This', 'is', 'a', 'list']\n", - "['New word', 'World', 'This', 'is', 'a']\n", - "[]\n" - ] - } - ], - "source": [ - "# Creating a list\n", - "multiple_words: list = [\"Hello\", \"World\", \"This\", \"is\", \"a\", \"list\"]\n", - "print(multiple_words)\n", - "print(type(multiple_words))\n", - "print(id(multiple_words))\n", - "\n", - "# Updating item in list\n", - "multiple_words[0] = \"New word\"\n", - "\n", - "# Adding item to end of list\n", - "multiple_words.append(\"Another New word\")\n", - "print(id(multiple_words))\n", - "print(multiple_words)\n", - "\n", - "# Inserting item at specific index\n", - "multiple_words.insert(0, \"First word\")\n", - "print(multiple_words)\n", - "\n", - "# List slicing\n", - "print(multiple_words[3:0:-1])\n", - "print(multiple_words[3:])\n", - "print(multiple_words[:3])\n", - "print(multiple_words[-1])\n", - "print(multiple_words[-2])\n", - "print(multiple_words[-3:])\n", - "print(multiple_words[:-3])\n", - "\n", - "# Deleting item from list\n", - "del multiple_words[0]\n", - "print(multiple_words)\n", - "\n", - "# Different way to delete item from list\n", - "multiple_words.remove(\"Another New word\")\n", - "print(multiple_words)\n", - "\n", - "# Pop item from list\n", - "multiple_words.pop() # Removes last item, unless index is specified\n", - "print(multiple_words)\n", - "\n", - "# Deleting all items from list\n", - "multiple_words.clear()\n", - "print(multiple_words)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Tuple" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "('Hello', 'World', 'This', 'is', 'a', 'tuple')\n", - "\n", - "3150408814688\n", - "('Hello', 'World', 'This', 'is', 'a', 'tuple', 'New word')\n", - "3150408814208\n" - ] - } - ], - "source": [ - "my_set: tuple = (\"Hello\", \"World\", \"This\", \"is\", \"a\", \"tuple\")\n", - "print(my_set)\n", - "print(type(my_set))\n", - "print(id(my_set))\n", - "# Tuple[0] = \"New word\" # TypeError: 'tuple' object does not support item assignment\n", - "my_set = my_set + (\"New word\",)\n", - "print(my_set)\n", - "print(id(my_set))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Dictionary" - ] - }, - { - "cell_type": "code", - "execution_count": 16, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current dictionary: {'key1': 'value1', 'key2': 'value2'}\n", - "\n", - "Key1 = value1\n", - "Key3 = None\n", - "Key3 = default value\n", - "Key3 after adding it = value3\n", - "Current dictionary: {'key1': 'value1 updated', 'key2': 'value2', 'key3': 'value3', 'key4': 'value4', (1, 2): 'tuple as key'}\n", - "tuple as key , value1 updated , value4\n", - "Current dictionary: {'key2': 'value2', 'key3': 'value3', 'key4': 'value4', (1, 2): 'tuple as key'}\n", - "Current dictionary: {'key3': 'value3', 'key4': 'value4', (1, 2): 'tuple as key'}\n", - "Value of key2 = value2\n" - ] - } - ], - "source": [ - "# Creating a dictionary\n", - "dictionary: dict = {\"key1\": \"value1\", \"key2\": \"value2\"}\n", - "print(\"Current dictionary: \", dictionary)\n", - "print(type(dictionary))\n", - "\n", - "# Accessing a value\n", - "print(\"Key1 = \" , dictionary.get(\"key1\"))\n", - "print(\"Key3 = \", dictionary.get(\"key3\"))\n", - "print(\"Key3 = \" , dictionary.get(\"key3\", \"default value\"))\n", - "\n", - "# Adding a new key\n", - "dictionary[\"key3\"] = \"value3\"\n", - "print(\"Key3 after adding it = \" , dictionary.get(\"key3\", \"default value\"))\n", - "\n", - "# updating multiple values\n", - "dictionary.update({\"key4\": \"value4\", \"key1\": \"value1 updated\", (1, 2): \"tuple as key\"})\n", - "print(\"Current dictionary: \", dictionary)\n", - "print(dictionary.get((1, 2)), \", \" , dictionary.get(\"key1\"), \", \" , dictionary.get(\"key4\"))\n", - "\n", - "# deleting a key\n", - "del dictionary[\"key1\"]\n", - "print(\"Current dictionary: \", dictionary)\n", - "\n", - "# different way to delete key\n", - "value = dictionary.pop(\"key2\")\n", - "print(\"Current dictionary: \", dictionary)\n", - "print(\"Value of key2 = \", value)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Boolean" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "True\n", - "\n" - ] - } - ], - "source": [ - "yes_no: bool = True\n", - "print(yes_no)\n", - "print(type(yes_no))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Set" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "{'is', 'a', 'set', 'Hello', 'This', 'World'}\n", - "\n", - "2224325065664\n", - "{'is', 'a', 'New word', 'set', 'Hello', 'This', 'World'}\n", - "{'Another new word', 'This', 'set', 'is', 'Hello', 'One more new word', 'a', 'New word', 'World'}\n", - "2224325065664\n", - "{'is', 'a', 'set', 'Hello', 'This', 'World'}\n", - "{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'This', 'set', 'is', 'Hello', 'a', 'World'}\n", - "{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'This', 'set', 'is', 'a', 'World'}\n" - ] - } - ], - "source": [ - "my_set: set = {\"Hello\", \"World\", \"This\", \"is\", \"a\", \"set\"}\n", - "print(my_set)\n", - "print(type(my_set))\n", - "print(id(my_set))\n", - "\n", - "# Adding item to set\n", - "my_set.add(\"New word\")\n", - "print(my_set)\n", - "\n", - "# Adding multiple items to set\n", - "my_set.update([\"Another new word\", \"One more new word\"])\n", - "print(my_set)\n", - "print(id(my_set))\n", - "\n", - "# Creating set with duplicate items\n", - "my_set: set = {\"Hello\", \"World\", \"This\", \"is\", \"a\", \"set\", \"Hello\", \"World\", \"This\", \"is\", \"a\", \"set\"}\n", - "print(my_set)\n", - "\n", - "# Creating set with different data types\n", - "my_set: set = {\"Hello\", \"World\", \"This\", \"is\", \"a\", \"set\", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}\n", - "print(my_set)\n", - "\n", - "# Removing item from set\n", - "my_set.discard(\"Hello\")\n", - "print(my_set)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Frozen Set" - ] - }, - { - "cell_type": "code", - "execution_count": 45, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "frozenset({'a', 'frozen set', 'is', 'This', 'World', 'Hello'})\n", - "\n" - ] - } - ], - "source": [ - "frozen_set: frozenset = frozenset({\"Hello\", \"World\", \"This\", \"is\", \"a\", \"frozen set\"})\n", - "print(frozen_set)\n", - "print(type(frozen_set))\n", - "\n", - "# FrozenSet.add(\"New word\") # AttributeError: 'frozenset' object has no attribute 'add'\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.10.5 64-bit", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.5" - }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "b0d9c7fd3642b660ffedf3a77d11c31e11ccbd2a913cb9ccb12c86252838bb24" - } - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/Tutorial/2. Python IO and Operators.ipynb b/Tutorial/2. Python IO and Operators.ipynb deleted file mode 100644 index 4ee4fba..0000000 --- a/Tutorial/2. Python IO and Operators.ipynb +++ /dev/null @@ -1,327 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Python IO\n", - "Dealing with python input and output\n", - "## Input/Output" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "15\n", - "\n", - "\n", - "Welcome to AI Course!!\n", - "Welcome to AI Course!!\n", - "['Line 1', 'Line 2', 'Line 3', 'Line 4']\n", - "Line 1\n", - "\n", - "Line 2\n", - "\n", - "Line 3\n", - "\n", - "Line 4\n" - ] - } - ], - "source": [ - "# Create a variable and get its input from the user\n", - "# The input function always returns a string\n", - "Variable = input(\"Enter a value: \")\n", - "# Print the variable\n", - "print(Variable)\n", - "print(type(Variable))\n", - "\n", - "# Convert the variable to an integer\n", - "Variable = int(Variable)\n", - "print(type(Variable))\n", - "\n", - "# Can also get input from file\n", - "File = open(\"resources/input.txt\", \"r\")\n", - "Variable = File.read()\n", - "File.close()\n", - "print(Variable)\n", - "\n", - "# Pythonic way to read a file\n", - "with open(\"resources/input.txt\", \"r\") as File:\n", - " Variable = File.read()\n", - " print(Variable)\n", - "# Read file line by line and print lines\n", - "with open(\"resources/input2.txt\", \"r\") as File:\n", - " lines = File.read().splitlines()\n", - " print(lines)\n", - "\n", - "# Write into a file\n", - "with open(\"output.txt\", \"w\") as File:\n", - " File.write(\"Hello World\")\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Operators" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Arithmetic Operators" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "9 + 4 = 13\n", - "9 - 4 = 5\n", - "9 * 4 = 36\n", - "9 / 4 = 2.25\n", - "9 // 4 = 2\n", - "9 % 4 = 1\n", - "9 ** 4 = 6561\n" - ] - } - ], - "source": [ - "number = 9\n", - "other_number = 4\n", - "print(f\"{number} + {other_number} = {number + other_number}\")\n", - "print(f\"{number} - {other_number} = {number - other_number}\")\n", - "print(f\"{number} * {other_number} = {number * other_number}\")\n", - "print(f\"{number} / {other_number} = {number / other_number}\")\n", - "print(f\"{number} // {other_number} = {number // other_number}\")\n", - "print(f\"{number} % {other_number} = {number % other_number}\")\n", - "print(f\"{number} ** {other_number} = {number ** other_number}\")\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Assignment Operators" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "11\n", - "10\n", - "20\n", - "10.0\n", - "5.0\n", - "1.0\n", - "4\n" - ] - } - ], - "source": [ - "number = 10\n", - "# increment by 1\n", - "number += 1\n", - "print(number)\n", - "# decrement by 1\n", - "number -= 1\n", - "print(number)\n", - "# multiply by 2\n", - "number *= 2\n", - "print(number)\n", - "# divide by 2\n", - "number /= 2\n", - "print(number)\n", - "# divide by 2 and round down\n", - "number //= 2\n", - "print(number)\n", - "# modulo\n", - "number %= 2\n", - "print(number)\n", - "# exponent\n", - "number = 2\n", - "number **= 2\n", - "print(number)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Comparison Operators" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "number = 10\n", - "other_number = 5\n", - "print(f\"{number} == {other_number} = {number == other_number}\")\n", - "print(f\"{number} != {other_number} = {number != other_number}\")\n", - "print(f\"{number} > {other_number} = {number > other_number}\")\n", - "print(f\"{number} < {other_number} = {number < other_number}\")\n", - "print(f\"{number} >= {other_number} = {number >= other_number}\")\n", - "print(f\"{number} <= {other_number} = {number <= other_number}\")" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Logical Operators" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "True and False = False\n", - "True and True = True\n", - "True or False = True\n", - "not True = False\n" - ] - } - ], - "source": [ - "yes = True\n", - "no = False\n", - "print(f\"{yes} and {no} = {yes and no}\")\n", - "print(f\"{yes} and {yes} = {yes and yes}\")\n", - "print(f\"{yes} or {no} = {yes or no}\")\n", - "print(f\"not {yes} = {not yes}\")\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### bitwise Operators" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "10 & 5 = 0\n", - "10 | 5 = 15\n", - "10 ^ 5 = 15\n", - "~10 = -11\n", - "10 << 1 = 20\n", - "10 >> 1 = 5\n" - ] - } - ], - "source": [ - "number = 10 # 1010\n", - "other_number = 5 # 0101\n", - "print(f\"{number} & {other_number} = {number & other_number}\") # bitwise AND 0000\n", - "print(f\"{number} | {other_number} = {number | other_number}\") # bitwise OR 1111\n", - "print(f\"{number} ^ {other_number} = {number ^ other_number}\") # bitwise XOR 1111\n", - "print(f\"~{number} = {~number}\") # bitwise NOT -11 (2's complement) 0101\n", - "print(f\"{number} << 1 = {number << 1}\") # bitwise left shift 10100\n", - "print(f\"{number} >> 1 = {number >> 1}\") # bitwise right shift 101\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Special Operators" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello World is Hello World = False\n", - "string id = 2208852748912\n", - "second_string id = 2208852753968\n", - "Hello World is not Hello World = True\n", - "'H' in Hello World = True\n", - "'H' not in Hello World = False\n" - ] - } - ], - "source": [ - "string = \"Hello World\"\n", - "second_string = \"Hello World\"\n", - "# is operator\n", - "print(f\"{string} is {second_string} = {string is second_string}\")\n", - "# IDs\n", - "print(f\"string id = {id(string)}\")\n", - "print(f\"second_string id = {id(second_string)}\")\n", - "# is not operator\n", - "print(f\"{string} is not {second_string} = {string is not second_string}\")\n", - "# in operator\n", - "print(f\"'H' in {string} = {'H' in string}\")\n", - "# not in operator\n", - "print(f\"'H' not in {string} = {'H' not in string}\")" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.10.4 64-bit", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.5" - }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "b0d9c7fd3642b660ffedf3a77d11c31e11ccbd2a913cb9ccb12c86252838bb24" - } - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/Tutorial/3. Flow Control.ipynb b/Tutorial/3. Flow Control.ipynb deleted file mode 100644 index edc5387..0000000 --- a/Tutorial/3. Flow Control.ipynb +++ /dev/null @@ -1,269 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Flow Control in Python\n", - "## 1. if-elif-else" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[16, 25]\n", - "16 is even\n", - "16 is even\n", - "16 is even and 25 is odd\n", - "16 is in the list\n", - "16 is in the list\n" - ] - } - ], - "source": [ - "# Read numbers from file and append them to a list\n", - "numbers = []\n", - "with open(\"resources/numbers.txt\") as f:\n", - " for line in f:\n", - " numbers.append(int(line))\n", - "print(numbers)\n", - "\n", - "# Check if number is even\n", - "if numbers[0] % 2 == 0:\n", - " print(f\"{numbers[0]} is even\")\n", - "else:\n", - " print(f\"{numbers[0]} is odd\")\n", - "\n", - "# Using elif\n", - "if numbers[0] % 2 == 0:\n", - " print(f\"{numbers[0]} is even\")\n", - "elif numbers[1] % 2 == 0:\n", - " print(f\"{numbers[1]} is even\")\n", - "else:\n", - " print(f\"{numbers[0]} and {numbers[1]} are odd\")\n", - "\n", - "# Using nested if\n", - "if numbers[0] % 2 == 0:\n", - " if numbers[1] % 2 == 0:\n", - " print(f\"{numbers[0]} and {numbers[1]} are even\")\n", - " else:\n", - " print(f\"{numbers[0]} is even and {numbers[1]} is odd\")\n", - "else:\n", - " if numbers[1] % 2 == 0:\n", - " print(f\"{numbers[0]} is odd and {numbers[1]} is even\")\n", - " else:\n", - " print(f\"{numbers[0]} and {numbers[1]} are odd\")\n", - "\n", - "# Using in to check if a value is in a list\n", - "if 16 in numbers:\n", - " print(\"16 is in the list\")\n", - "else:\n", - " print(\"16 is not in the list\")\n", - "\n", - "# Using not in to check if a value is not in a list\n", - "if 16 not in numbers:\n", - " print(\"16 is not in the list\")\n", - "else:\n", - " print(\"16 is in the list\")\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 2. for" - ] - }, - { - "cell_type": "code", - "execution_count": 16, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]\n", - "[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100]\n", - "[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99]\n", - "{'even': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100], 'odd': [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99]}\n", - "name: John\n", - "age: 30\n", - "city: New York\n", - "C+\n" - ] - } - ], - "source": [ - "# Read numbers from file and append them to a list\n", - "numbers = []\n", - "with open(\"resources/lotsOfNumbers.txt\") as f:\n", - " for line in f:\n", - " numbers.append(int(line))\n", - "print(numbers)\n", - "\n", - "# Using for loop to iterate through a list create even numbers list and odd numbers list\n", - "even_numbers = []\n", - "odd_numbers = []\n", - "for number in numbers:\n", - " if number % 2 == 0:\n", - " even_numbers.append(number)\n", - " else:\n", - " odd_numbers.append(number)\n", - "print(even_numbers)\n", - "print(odd_numbers)\n", - "\n", - "# Use list comprehension to create even numbers list and odd numbers list\n", - "even_numbers = [number for number in numbers if number % 2 == 0]\n", - "odd_numbers = [number for number in numbers if number % 2 != 0]\n", - "\n", - "# Use for loop to create dictionary of even numbers and odd numbers\n", - "sorted_numbers = {}\n", - "for number in numbers:\n", - " if number % 2 == 0:\n", - " if \"even\" in sorted_numbers:\n", - " sorted_numbers[\"even\"].append(number)\n", - " else:\n", - " sorted_numbers[\"even\"] = [number]\n", - " else:\n", - " if \"odd\" in sorted_numbers:\n", - " sorted_numbers[\"odd\"].append(number)\n", - " else:\n", - " sorted_numbers[\"odd\"] = [number]\n", - "\n", - "# Same thing using list comprehension\n", - "sorted_numbers = {\"even\": [number for number in numbers if number % 2 == 0],\n", - " \"odd\": [number for number in numbers if number % 2 != 0]\n", - " }\n", - "print(sorted_numbers)\n", - "\n", - "# Example using dictionary\n", - "GPA_convert = {(95, 100) : \"A+\" , (90, 95) : \"A \", (85, 90) : \"B+\", (80, 85) : \"B \", (75, 80): \"C+\", (70 , 75) : \"C \", (65, 70) : \"D+\", (60, 65) : \"D \", (0, 60) : \"F \"}\n", - "letter_grade = 77\n", - "for key, value in GPA_convert.items():\n", - " if letter_grade >= key[0] and letter_grade < key[1]:\n", - " print(value)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 3. while" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "You have passed level 0\n", - "You have passed level 1\n", - "You have passed level 2\n", - "You have passed level 3\n", - "You have passed level 4\n", - "You have passed level 5\n", - "Level Ends\n" - ] - } - ], - "source": [ - "# while loop example\n", - "current_level = 0\n", - "final_level = 5\n", - "\n", - "game_completed = True\n", - "\n", - "while current_level <= final_level:\n", - " if game_completed:\n", - " print('You have passed level', current_level)\n", - " current_level += 1\n", - "\n", - "print('Level Ends')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 4. break and continue" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]\n", - "[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 76, 78]\n", - "[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 75, 77, 79]\n" - ] - } - ], - "source": [ - "# Read numbers from file and append them to a list\n", - "numbers = []\n", - "with open(\"resources/lotsOfNumbers.txt\") as f:\n", - " for line in f:\n", - " numbers.append(int(line))\n", - "print(numbers)\n", - "\n", - "# Using for loop to iterate through a list create even numbers list and odd numbers list\n", - "even_numbers = []\n", - "odd_numbers = []\n", - "for number in numbers:\n", - " if number in range(50,75):\n", - " continue\n", - " if number == 80:\n", - " break\n", - " if number % 2 == 0:\n", - " even_numbers.append(number)\n", - " else:\n", - " odd_numbers.append(number)\n", - "print(even_numbers)\n", - "print(odd_numbers)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.10.5 64-bit", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.5" - }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "b0d9c7fd3642b660ffedf3a77d11c31e11ccbd2a913cb9ccb12c86252838bb24" - } - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/Tutorial/4. Functions.ipynb b/Tutorial/4. Functions.ipynb deleted file mode 100644 index d5028b7..0000000 --- a/Tutorial/4. Functions.ipynb +++ /dev/null @@ -1,205 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Functions\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Python functions\n", - "### Implicit calls to functions" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello World\n", - "abs(-5) = 5\n", - "max(1, 2, 3, 4, 5) = 5\n", - "min(1, 2, 3, 4, 5) = 1\n", - "round(3.14159) = 3\n", - "round(3.14159, 2) = 3.14\n", - "pow(2, 3) = 8\n", - "pow(2, 3, 3) = 8\n", - "sum([1, 2, 3, 4, 5]) = 15\n", - "sum([1, 2, 3, 4, 5], 10) = 25\n", - "len('Hello World') = 11\n", - "len([1, 2, 3, 4, 5]) = 5\n" - ] - } - ], - "source": [ - "# Python function examples\n", - "print(\"Hello World\")\n", - "print(f\"abs(-5) = {abs(-5)}\")\n", - "print(f\"max(1, 2, 3, 4, 5) = {max(1, 2, 3, 4, 5)}\")\n", - "print(f\"min(1, 2, 3, 4, 5) = {min(1, 2, 3, 4, 5)}\")\n", - "print(f\"round(3.14159) = {round(3.14159)}\")\n", - "print(f\"round(3.14159, 2) = {round(3.14159, 2)}\")\n", - "print(f\"pow(2, 3) = {pow(2, 3)}\")\n", - "print(f\"pow(2, 3, 3) = {pow(2, 3)}\")\n", - "print(f\"sum([1, 2, 3, 4, 5]) = {sum([1, 2, 3, 4, 5])}\")\n", - "print(f\"sum([1, 2, 3, 4, 5], 10) = {sum([1, 2, 3, 4, 5], 10)}\")\n", - "print(f\"len('Hello World') = {len('Hello World')}\")\n", - "print(f\"len([1, 2, 3, 4, 5]) = {len([1, 2, 3, 4, 5])}\")\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Explicit calls to functions" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "math.ceil(3.14159) = 4\n", - "math.floor(3.14159) = 3\n", - "math.fabs(-3.14159) = 3.14159\n", - "math.factorial(5) = 120\n", - "math.fsum([1, 2, 3, 4, 5]) = 15.0\n", - "math.gcd(12, 18) = 6\n", - "math.isfinite(3.14159) = True\n", - "math.isfinite(math.inf) = False\n", - "math.isinf(3.14159) = False\n" - ] - } - ], - "source": [ - "import math\n", - "print(f\"math.ceil(3.14159) = {math.ceil(3.14159)}\")\n", - "print(f\"math.floor(3.14159) = {math.floor(3.14159)}\")\n", - "print(f\"math.fabs(-3.14159) = {math.fabs(-3.14159)}\")\n", - "print(f\"math.factorial(5) = {math.factorial(5)}\")\n", - "print(f\"math.fsum([1, 2, 3, 4, 5]) = {math.fsum([1, 2, 3, 4, 5])}\")\n", - "print(f\"math.gcd(12, 18) = {math.gcd(12, 18)}\")" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## User-defined functions" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello World\n", - "Hello Radwan\n", - "Hello World\n", - "Hello James\n", - "Hello Radwan, you are 21 years old\n", - "Hello World, you are 18 years old\n", - "Hello James, you are 21 years old\n", - "Hello World, you are 18 years old\n", - "Hello ('Hello', 'World')\n", - "Hello {'name': 'Hello', 'age': 18}\n" - ] - } - ], - "source": [ - "# Function with no arguments\n", - "def hello_world():\n", - " print(\"Hello World\")\n", - "hello_world()\n", - "\n", - "# Function with arguments\n", - "def hello_name(name: str):\n", - " print(f\"Hello {name}\")\n", - "hello_name(f\"Radwan\")\n", - "\n", - "# Function with default argument\n", - "def hello_name_default(name=\"World\"):\n", - " print(f\"Hello {name}\")\n", - "hello_name_default()\n", - "hello_name_default(\"James\")\n", - "\n", - "# Function with multiple arguments\n", - "def hello_name_age(name: str, age :int):\n", - " print(f\"Hello {name}, you are {age} years old\")\n", - "hello_name_age(\"Radwan\", 21)\n", - "\n", - "# Function with multiple arguments and default argument\n", - "def hello_name_age_default(name=\"World\", age=18):\n", - " print(f\"Hello {name}, you are {age} years old\")\n", - "hello_name_age_default()\n", - "hello_name_age_default(\"James\", 21)\n", - "\n", - "# function with return value\n", - "def hello_return(name=\"World\", age=18):\n", - " return f\"Hello {name}, you are {age} years old\"\n", - "my_string = hello_return()\n", - "print(my_string)\n", - "\n", - "# Function with variable number of arguments\n", - "def hello_args(*args):\n", - " print(f\"Hello {args}\")\n", - "hello_args(\"Hello\", \"World\")\n", - "\n", - "# Function with variable number of keyword arguments\n", - "def hello_kwargs(**kwargs):\n", - " print(f\"Hello {kwargs}\")\n", - "hello_kwargs(name=\"Hello\", age=18)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3.10.5 64-bit", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.5" - }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "b0d9c7fd3642b660ffedf3a77d11c31e11ccbd2a913cb9ccb12c86252838bb24" - } - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/Tutorial/Python_Packages/main.py b/Tutorial/Python_Packages/main.py deleted file mode 100644 index dd44318..0000000 --- a/Tutorial/Python_Packages/main.py +++ /dev/null @@ -1,5 +0,0 @@ -import operations -print(operations.add(2, 3)) -print(operations.subtract(5, 3)) -print(operations.multiply(2, 3)) -print(operations.divide(6, 3)) diff --git a/Tutorial/Python_Packages/operations/__init__.py b/Tutorial/Python_Packages/operations/__init__.py deleted file mode 100644 index 0ae96f7..0000000 --- a/Tutorial/Python_Packages/operations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .addition import addition as add -from .subtraction import subtract as subtract -from .multiplication import multiply as multiply -from .division import division as divide \ No newline at end of file diff --git a/Tutorial/Python_Packages/operations/__pycache__/__init__.cpython-310.pyc b/Tutorial/Python_Packages/operations/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 6e8b976..0000000 Binary files a/Tutorial/Python_Packages/operations/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/Tutorial/Python_Packages/operations/__pycache__/addition.cpython-310.pyc b/Tutorial/Python_Packages/operations/__pycache__/addition.cpython-310.pyc deleted file mode 100644 index a00218c..0000000 Binary files a/Tutorial/Python_Packages/operations/__pycache__/addition.cpython-310.pyc and /dev/null differ diff --git a/Tutorial/Python_Packages/operations/__pycache__/division.cpython-310.pyc b/Tutorial/Python_Packages/operations/__pycache__/division.cpython-310.pyc deleted file mode 100644 index 3dd131f..0000000 Binary files a/Tutorial/Python_Packages/operations/__pycache__/division.cpython-310.pyc and /dev/null differ diff --git a/Tutorial/Python_Packages/operations/__pycache__/multiplication.cpython-310.pyc b/Tutorial/Python_Packages/operations/__pycache__/multiplication.cpython-310.pyc deleted file mode 100644 index b9d8a51..0000000 Binary files a/Tutorial/Python_Packages/operations/__pycache__/multiplication.cpython-310.pyc and /dev/null differ diff --git a/Tutorial/Python_Packages/operations/__pycache__/subtraction.cpython-310.pyc b/Tutorial/Python_Packages/operations/__pycache__/subtraction.cpython-310.pyc deleted file mode 100644 index 5fd6539..0000000 Binary files a/Tutorial/Python_Packages/operations/__pycache__/subtraction.cpython-310.pyc and /dev/null differ diff --git a/Tutorial/Python_Packages/operations/addition.py b/Tutorial/Python_Packages/operations/addition.py deleted file mode 100644 index b2fcfda..0000000 --- a/Tutorial/Python_Packages/operations/addition.py +++ /dev/null @@ -1,2 +0,0 @@ -def addition(a, b): - return a + b \ No newline at end of file diff --git a/Tutorial/Python_Packages/operations/division.py b/Tutorial/Python_Packages/operations/division.py deleted file mode 100644 index 146d90f..0000000 --- a/Tutorial/Python_Packages/operations/division.py +++ /dev/null @@ -1,2 +0,0 @@ -def division(a, b): - return a / b \ No newline at end of file diff --git a/Tutorial/Python_Packages/operations/multiplication.py b/Tutorial/Python_Packages/operations/multiplication.py deleted file mode 100644 index 46134b0..0000000 --- a/Tutorial/Python_Packages/operations/multiplication.py +++ /dev/null @@ -1,2 +0,0 @@ -def multiply(a, b): - return a * b \ No newline at end of file diff --git a/Tutorial/Python_Packages/operations/subtraction.py b/Tutorial/Python_Packages/operations/subtraction.py deleted file mode 100644 index 0b226ae..0000000 --- a/Tutorial/Python_Packages/operations/subtraction.py +++ /dev/null @@ -1,2 +0,0 @@ -def subtract(a, b): - return a - b \ No newline at end of file diff --git a/Tutorial/resources/input.txt b/Tutorial/resources/input.txt deleted file mode 100644 index 8a8c19d..0000000 --- a/Tutorial/resources/input.txt +++ /dev/null @@ -1 +0,0 @@ -Welcome to AI Course!! \ No newline at end of file diff --git a/Tutorial/resources/input2.txt b/Tutorial/resources/input2.txt deleted file mode 100644 index e73e515..0000000 --- a/Tutorial/resources/input2.txt +++ /dev/null @@ -1,4 +0,0 @@ -Line 1 -Line 2 -Line 3 -Line 4 \ No newline at end of file diff --git a/Tutorial/resources/lotsOfNumbers.txt b/Tutorial/resources/lotsOfNumbers.txt deleted file mode 100644 index b6e8d28..0000000 --- a/Tutorial/resources/lotsOfNumbers.txt +++ /dev/null @@ -1,101 +0,0 @@ -0000 -0001 -0002 -0003 -0004 -0005 -0006 -0007 -0008 -0009 -0010 -0011 -0012 -0013 -0014 -0015 -0016 -0017 -0018 -0019 -0020 -0021 -0022 -0023 -0024 -0025 -0026 -0027 -0028 -0029 -0030 -0031 -0032 -0033 -0034 -0035 -0036 -0037 -0038 -0039 -0040 -0041 -0042 -0043 -0044 -0045 -0046 -0047 -0048 -0049 -0050 -0051 -0052 -0053 -0054 -0055 -0056 -0057 -0058 -0059 -0060 -0061 -0062 -0063 -0064 -0065 -0066 -0067 -0068 -0069 -0070 -0071 -0072 -0073 -0074 -0075 -0076 -0077 -0078 -0079 -0080 -0081 -0082 -0083 -0084 -0085 -0086 -0087 -0088 -0089 -0090 -0091 -0092 -0093 -0094 -0095 -0096 -0097 -0098 -0099 -0100 \ No newline at end of file diff --git a/Tutorial/resources/numbers.txt b/Tutorial/resources/numbers.txt deleted file mode 100644 index f6cf30a..0000000 --- a/Tutorial/resources/numbers.txt +++ /dev/null @@ -1,2 +0,0 @@ -16 -25 \ No newline at end of file diff --git a/readme/banner.png b/readme/banner.png deleted file mode 100644 index 6157bea..0000000 Binary files a/readme/banner.png and /dev/null differ diff --git a/readme/image.png b/readme/image.png deleted file mode 100644 index 5485f41..0000000 Binary files a/readme/image.png and /dev/null differ diff --git a/readme/image1.png b/readme/image1.png deleted file mode 100644 index 4b389e1..0000000 Binary files a/readme/image1.png and /dev/null differ diff --git a/readme/image10.png b/readme/image10.png deleted file mode 100644 index b89cbe9..0000000 Binary files a/readme/image10.png and /dev/null differ diff --git a/readme/image11.png b/readme/image11.png deleted file mode 100644 index 53975da..0000000 Binary files a/readme/image11.png and /dev/null differ diff --git a/readme/image12.png b/readme/image12.png deleted file mode 100644 index 6280d5a..0000000 Binary files a/readme/image12.png and /dev/null differ diff --git a/readme/image15.png b/readme/image15.png deleted file mode 100644 index b57f687..0000000 Binary files a/readme/image15.png and /dev/null differ diff --git a/readme/image16.png b/readme/image16.png deleted file mode 100644 index 6424037..0000000 Binary files a/readme/image16.png and /dev/null differ diff --git a/readme/image17.png b/readme/image17.png deleted file mode 100644 index 92d24fa..0000000 Binary files a/readme/image17.png and /dev/null differ diff --git a/readme/image18.png b/readme/image18.png deleted file mode 100644 index ce3317b..0000000 Binary files a/readme/image18.png and /dev/null differ diff --git a/readme/image19.png b/readme/image19.png deleted file mode 100644 index c09de13..0000000 Binary files a/readme/image19.png and /dev/null differ diff --git a/readme/image20.png b/readme/image20.png deleted file mode 100644 index 7c4f268..0000000 Binary files a/readme/image20.png and /dev/null differ diff --git a/readme/image21.png b/readme/image21.png deleted file mode 100644 index 63e2b43..0000000 Binary files a/readme/image21.png and /dev/null differ diff --git a/readme/image22.png b/readme/image22.png deleted file mode 100644 index 94b339b..0000000 Binary files a/readme/image22.png and /dev/null differ diff --git a/readme/image25.png b/readme/image25.png deleted file mode 100644 index aa910f3..0000000 Binary files a/readme/image25.png and /dev/null differ diff --git a/readme/image26.png b/readme/image26.png deleted file mode 100644 index ab608e3..0000000 Binary files a/readme/image26.png and /dev/null differ diff --git a/readme/image3.png b/readme/image3.png deleted file mode 100644 index 6863437..0000000 Binary files a/readme/image3.png and /dev/null differ diff --git a/readme/image6.png b/readme/image6.png deleted file mode 100644 index bf5c85c..0000000 Binary files a/readme/image6.png and /dev/null differ diff --git a/readme/image7.png b/readme/image7.png deleted file mode 100644 index 234b7b0..0000000 Binary files a/readme/image7.png and /dev/null differ diff --git a/readme/image8.png b/readme/image8.png deleted file mode 100644 index 9e21dfd..0000000 Binary files a/readme/image8.png and /dev/null differ diff --git a/readme/image9.png b/readme/image9.png deleted file mode 100644 index 9ef798e..0000000 Binary files a/readme/image9.png and /dev/null differ