Git Product home page Git Product logo

pyscripts's Introduction

PyScripts

What is this repository all about?

I love Python3 and naturally, I tend to write a lot of python code! Occasionally, I decide to try out a new way to implement something and I write a short script for it in python. Other times, i just write python when i'm bored. This repository contains all such short and interesting python scripts that do not necessarily fit into a larger project that is worthy of its own github repo.

Ceasarcipher.py

We have all heard about the infamous ceasarcipher encryption algorithm! I personally learnt about it from one of my school programs! The basic idea is you have a message (string) and you have a shift value (int). You then shift all the characters in the message by that shift amount (shift the ASCII values from the ASCII table). This encodes the strings. The reciever can then decode the string by shifting it by the negative of the shift value! In school i learnt how to do this using Java and only limited to alphabets. This script can encode any string containing alphabets, numbers and even special characters! Feel free to tinker with it!

CustomRoots.py

Finding the Square Root of a perfect square is quite easy! But have you ever tried manually finding the square root of a non-perfect square number? Its not so easy! In School we learnt about a method using a form of Division which i named DivisionRoot. Basically, check out the code to see how the algorithm has been implemented. Additionally, i have put implementations of other algorithms like NewtonRoot, BabylonRoot and also compared it with the math.sqrt function! my algorithm doesnt perform that badly!

TowersOfHanoi.py

As the name suggests, this is just an implementation of the Towers Of Hanoi using Recursion in Python3

Patterns.py

This script contains certain patterns (to practice looping) in Python!

pyscripts's People

Contributors

synapsecode 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.