Open virejdasani opened 2 years ago
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...
We could create a milestone badge for the 200 repositories using pythOwO!
Doing now one second
Doing now one second
failed at doing it now :(
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
I think it would be uwumazing if we managed to get pythOwO recognized as a language on Github so it shows on our repos like this:
I've linked some resources I found about how to go about doing this: