Repository: TheAlgorithms/Python

Issue:
Create norgate.py
### Describe your change:



* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Documentation change?

### Checklist:
* [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).
* [ ] This pull request is all my own work -- I have not plagiarized.
* [ ] I know that pull requests will not be merged if they fail the automated tests.
* [ ] This PR only changes one algorithm file.  To ease review, please open separate PRs for separate algorithms.
* [ ] All new Python files are placed inside an existing directory.
* [ ] All filenames are in all lowercase characters with no spaces or dashes.
* [ ] All functions and variable names follow Python naming conventions.
* [ ] All function parameters and return values are annotated with Python [type hints](https://docs.python.org/3/library/typing.html).
* [ ] All functions have [doctests](https://docs.python.org/3/library/doctest.html) that pass the automated testing.
* [ ] All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
* [ ] If this pull request resolves one or more open issues then the commit message contains `Fixes: #{$ISSUE_NO}`.



Discussion:
# Closing this pull request as invalid

@AkshajV1309, this pull request is being closed as none of the checkboxes have been marked. It is important that you go through the checklist and mark the ones relevant to this pull request. Please read the [Contributing guidelines](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).

If you're facing any problem on how to mark a checkbox, please read the following instructions:
- Read a point one at a time and think if it is relevant to the pull request or not.
- If it is, then mark it by putting a `x` between the square bracket like so: `[x]`

***NOTE: Only `[x]` is supported so if you have put any other letter or symbol between the brackets, that will be marked as invalid. If that is the case then please open a new pull request with the appropriate changes.***


Resolving patch:
diff --git a/boolean_algebra/norgate.py b/boolean_algebra/norgate.py
new file mode 100644
--- /dev/null
+++ b/boolean_algebra/norgate.py
@@ -0,0 +1,46 @@
+""" A NOR Gate is a logic gate in boolean algebra which results to false(0)
+    if any of the input is 1, and True(1) if  both the inputs are 0.
+   Following is the truth table of an NOR Gate:
+   | Input 1 | Input 2 |  Output |
+   |      0      |     0      |      1      |
+   |      0      |     1      |      0      |
+   |      1      |     0      |      0      |
+   |      1      |     1      |      0      |
+"""
+"""Following is the code implementation of the NOR Gate"""
+
+
+def nor_gate(input_1: int, input_2: int) -> int:
+    """
+    >>> nor_gate(0, 0)
+    1
+    >>> nor_gate(0, 1)
+    0
+    >>> nor_gate(1, 0)
+    0
+    >>> nor_gate(1, 1)
+    0
+    >>> nor_gate(0.0, 0.0)
+    1
+    >>> nor_gate(0, -7)
+    0
+    """
+    return int(bool(input_1 == input_2 == 0))
+
+
+def main() -> None:
+    print("Truth Table of NOR Gate:")
+    print("| Input 1 |", " Input 2 |", " Output |")
+    print("|      0      |", "     0      |     ", nor_gate(0, 0), "     |")
+    print("|      0      |", "     1      |     ", nor_gate(0, 1), "     |")
+    print("|      1      |", "     0      |     ", nor_gate(1, 0), "     |")
+    print("|      1      |", "     1      |     ", nor_gate(1, 1), "     |")
+
+
+if __name__ == "__main__":
+    import doctest
+
+    doctest.testmod()
+    main()
+"""Code provided by Akshaj Vishwanathan"""
+"""Reference: https://www.geeksforgeeks.org/logic-gates-in-python/"""
diff --git a/web_programming/open_google_results.py b/web_programming/open_google_results.py
--- a/web_programming/open_google_results.py
+++ b/web_programming/open_google_results.py
@@ -1,10 +1,10 @@
 import webbrowser
 from sys import argv
-from urllib.parse import quote, parse_qs
-from fake_useragent import UserAgent
+from urllib.parse import parse_qs, quote
 
 import requests
 from bs4 import BeautifulSoup
+from fake_useragent import UserAgent
 
 if __name__ == "__main__":
     if len(argv) > 1:
@@ -18,9 +18,7 @@
 
     res = requests.get(
         url,
-        headers={
-            "User-Agent": str(UserAgent().random)
-        },
+        headers={"User-Agent": str(UserAgent().random)},
     )
 
     try:


Test patch: