Giter Site home page Giter Site logo

Comments (5)

fox-of-snow avatar fox-of-snow commented on May 18, 2024

We should probably add some other key features like a builtin owo-ifier that replace the letters "r" and "l" with "w".(idea from that discord bot) to set it out from the other languages.(Convert str to list and search for "r" and "l" to replace them with "w"). I finished a built-in that make the text into a rainbow but it is not omptized. It should be able to use the same format to make as the builtin "pwint" but it uses acsii which is the closest thing I can found to be counted as a builtin. The code below is the code I made on some online python compilier to test the function before trying to add it here.

#insert string and this return a string but with an ascii inbetween each of the character(not optimal).
def rainbow(words:str)-> str:
  color=["\033[31m","\033[33m","\033[93m","\033[92m","\033[34m","\033[36m","\033[35m"]
  lencolor=0
  word=list(words)
  l=len(words)*2
  for inserts in range(0,l,2):
    if lencolor == 7:  
      lencolor=0 #resets the colors cuz it reached the end of the "color" array
    word.insert(inserts,color[lencolor])
  lencolor+=1    
  return "".join(word)

I had modify the builtin function "pwint" by modifying the input for the "def" function and pasting the rest of th code above and it worked(it was modded a bit cuz don't want a random user to use the same variable name and crash this builtin). But when I try to make a new built-in keyword for this. The code doesn't accept it as a function. Plz help...

from pythowo.

akirataguchi115 avatar akirataguchi115 commented on May 18, 2024

https://github.com/github/linguist/blob/master/CONTRIBUTING.md#user-content-adding-an-extension-to-a-language

We could create a milestone badge for the 200 repositories using pythOwO!

from pythowo.

Tulip-0333 avatar Tulip-0333 commented on May 18, 2024

Doing now one second

from pythowo.

Tulip-0333 avatar Tulip-0333 commented on May 18, 2024

Doing now one second

failed at doing it now :(

from pythowo.

Almas-Ali avatar Almas-Ali commented on May 18, 2024

Hey, you can tryout this project https://github.com/radon-project/radon because this projects are not maintaining. We will move a language together. It's very exciting. We have implement class feature in our project. Also standard library and third party imports.

See you there.

@virejdasani @akirataguchi115 @fox-of-snow @Tulip-0333

from pythowo.

Related Issues (20)

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.