Giter Site home page Giter Site logo
  • 👋 Hi, I’m Michał
  • 👀 I’m interested in ... many different things
  • 🌱 I’m currently learning ...
  • ✅️ 'Python Object Oriented' with Joe Marini on LinkedInLearning
  • ✅️ 'Advanced Python' with Joe Marini on LinkedInLearning
  • ✅️ 'Level Up : Python' with Barron Stone on LinkedInLearning (PCAP™ – Certified Associate Python Programmer Level)
  • 🔶️ 'Managing Python Projects' with Miki Tebeka on LinkedInLearning
  • 🔶️ 'Learning Docker' with Carlos Nunez on LinkedInLearning

#!/usr/bin/env python3

my_nick ="SHypoleac"

Just need an alphabet dict A:1, B:2, Z:26

alphabet_dict = {chr(65 + i): i + 1 for i in range(26)}

my_nick_in_nmbrs = transform(my_nick,alphabet_dict)

Step 1 and 2!

it = sorted(my_nick_in_nmbrs)[:5] + sorted(my_nick_in_nmbrs, reverse=True)[:3]

Is there anything left?

remains = [val for val in my_nick_in_nmbrs if val not in it]

Let's put this in the middle! - Step 3!

it.insert(int(len(it)/2), remains.pop())

it = transform(it,alphabet_dict)

print (f"If you can do it without computer, you surely have {it} ;)")

def transform(input_data, cryptodict): """Automatically performs encryption or decryption with cryptodict based on the type of input.""" if isinstance(input_data, str): # Encryption mode input_data=input_data.upper() return [cryptodict[char] if char in cryptodict else ord(char) for char in input_data] elif isinstance(input_data, (list, tuple)) and all(isinstance(i, int) for i in input_data): # Decryption mode inverted_dict = {v: k for k, v in cryptodict.items()} return "".join([inverted_dict.get(number, str(number)) for number in input_data]) else: raise ValueError("Input data must be either a string for encryption or a sequence of integers for decryption.")

SHypoleac's Projects

archetype-counter icon archetype-counter

PowerShell WinForm script for the online video game PokeMMO. Automatically tracks encounters (Horde, Safari, etc.) and when you receive Eggs or Fossils. Utilizes ImageMagick and OCR technology.

civ5expansionmod icon civ5expansionmod

Tries to add as much Civilization 5 content into the game. By Red11 (3.13.13)

classes icon classes

Smart, pythonic, ad-hoc, typed polymorphism for Python

rekmod icon rekmod

LekMOD for unciv. New and rebalanced civs, buildings, units, mechanics.

unciv icon unciv

Open-source Android/Desktop remake of Civ V

wine-ge-custom icon wine-ge-custom

My custom build of wine, made to use with lutris. Built with lutris's buildbot.

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.