Skip to content
    HarryParkinson2

    Harry Parkinson

    @HarryParkinson2
    HarryParkinson2
    HarryParkinson2
    published a Repl
    8 months ago
    0
    Reversing numbers
    Reversing numbers/* Assume the input is a 32-bit signed integer, meaning it can represent values in the range from -2^31 to 2^31 - 1. Overflow: If reversing the integer causes it to go outside the signed 32-bit integer range, then return 0. Your task is to implement the reverse function in TypeScript, which takes an integer as an argument and returns the reversed integer. If the reversed integer overflows the 32-bit signed integer range, return 0. */
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Check website vulnerabilities
    Check website vulnerabilitiesTo use this script, you would need to run it from the command line and pass in the HTTPS address of the website you want to check. For example: python check_vulnerabilities.py https://www.example.com
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Shortest distance between Mars and Earth
    Shortest distance between Mars and EarthThis function takes in the orbital parameters for a planet (semi-major axis, eccentricity, and true anomaly), and uses them to calculate the planet's opposition distance using the formula given above. The code then uses this function to calculate the opposition distance for the Earth and Mars and determines the shortest distance between the two planets by taking the minimum of these two distances.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Send emails using python
    Send emails using pythonEnter your Gmail and password and send messages using SMTP and python
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Fibonacci Numbers
    Fibonacci NumbersPrints out the Fibonacci sequence to a given range.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Generators Range
    Generators RangeA closer look at how the range function works under the hood.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Generators 3
    Generators 3An example of how generators work in python.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Generators Helper
    Generators HelperA help sheet I made for working with generators in python.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Error Handling
    Error HandlingA simple program designed to handle errors.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Errors In Python
    Errors In PythonSome examples of errors in python.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Function Performance Speed Tester
    Function Performance Speed TesterThis is a function I created to help test function speeds and improve code speed. Enjoy!
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Decorators
    DecoratorsAn example of how decorators work in python
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Set and Dictionary Comprehension
    Set and Dictionary ComprehensionExamples of set and dictionary comprehension for help practicing python.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Lambda Helper
    Lambda HelperI created this to help understand the concept of lambda expressions.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Functional exercise
    Functional exerciseExercise to help with python programming. Enjoy!
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    zip()
    zip()Example of zip
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    filter()
    filter()Some examples of the built-in filter method.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    map()
    map()An example of map built-in function.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    MRO Fun
    MRO FunShowing the MRO process in more detail.
    HarryParkinson2
    HarryParkinson2
    published a Repl
    1 year ago
    0
    Method Resolution Order
    Method Resolution OrderShows the built in MRO that python uses to decide what order to run code.
    Copyright © 2024 Replit, Inc. All rights reserved.
    • twitter
    • tiktok
    • instagram
    • facebook

    Replit

    Programming languages

    • Python
    • JavaScript
    • TypeScript
    • Node.js
    • Nix
    • HTML, CSS, JS
    • C++
    • Golang