Manitej Boorgu

@HarperframeInc (304)
Code Artist, Polygott Lover, Experimenter. I have nothing much to do anyways.
First GUI!
posted to Share by adsarebbbad

@Ramiels That's just repl.it. It's not his fault.

Code doesn't run
posted to Ask by harisbaig1

@PattanAhmed @JosephSanthosh is kinda right. Your trying to squeeze cycles by making your comments short so you have more opportunities to x2 your cycles.

It's kinda unethical. However I am not saying that you can't do this, I just want to say it's unethical and that I was going to make this comment yesterday, but I wasn't able to put it in terms of words.

It doesn't make sense to try to gain extra cycles from people who just want an answer. I understand you want cycles- but for what? You don't earn money from cycles, do you? Will you put it in you resume? No. It's just reputation, like stackoverflow. But unlike stackoverflow, there is no losing cycles from unhelpful answers. So even if you had a lot of cycles, people won't even respect you- you didn't do actual work to deserve it.

I'm not saying this to be rude, but I hope you understand.

blazesocial
posted to Share by Ravens0606

Cool!

SPLICE: A fully functional text editor in the console
posted to Share by JustAWalrus

I always wanted to do something like this. Looks like someone beat me to it :)

Can you put an if statement inside an if statement?
posted to Ask by JosephSanthosh

Of course! ...
Next time search up your question BEFORE you ask in post.

Rex Programming Language!
posted to Jam by AmazingMech2418

Amazing Squid, Yes!

Lit
posted to Share by egordorichev

Wait a minute...
Did you do this in a Repl Team? If not you should port your code over and use the Admin CI to enter that team in the jam.

Repl.it Database feedback 💾
posted to Announcements by kochman

I really like the Repl DB. My only issue is key size limits.
Also, please add the ability to view the Database!

WebCraft - A Online Minecraft!
posted to Share by HENRYMARTIN4

Creative mode needed. Feels like MC lite :) (The Nostalgia)

2.1. Numbers: Two digits
posted to Share by MohamadAlshabab

@MohamadAlshabab Your welcome! Just to let you know, clicking reply will let you reply on my comment, and you don't have to type out my number/cycles.

2.1. Numbers: Two digits
posted to Share by MohamadAlshabab

That's really cool @MohamadAlshabab!
But you can achieve this goal in a much easier and efficient way. Instead of using the unpacking operator *, slice the list using a negative index. This tells python to read right to left. So digits[-2] should give you the second-to-last character or the tens digit (same applies to ones: digits[-1] should give you the last character). This also fixes a bug where your code thinks that the tens place is the hundred place.

Build a website with Webby!
posted to Share by HarperframeInc

@MarcusWeinberger Thanks! I'll edit the CSS and fix the issues with site creation

Artificial Intelligence Competition
posted to Share by lydiahallie

Yay! Finally a new challenge!

Unexpected EOF while parsing?
posted to Ask by GoogleTech

If your code is unfinished, you will automatically reach an EOF

Cycle Finder
posted to Share by Pythonier

@IzanLarumbe Here's a quick rundown of a cycle:

A cycle is how many times someone upvoted your post or comment, or if you answered someone's question. (I believe it's like Reddit karma?)

Now that I have answered your question,

Can I have a cycle?

Please help trying to do audio stuff
posted to Ask by CoolJames1610

Do you have a link to your repl? Are you using the built-in audio library?

where can I sign up for the challenges?
posted to Ask by ShauryanK

@JosephSanthosh Challenges are meant for learning and fun, not the prizes. They might not win it, but atleast they still get some learning value from it

Omni - A Virtual Assistant
posted to Share by cloud9c

Me: What is 1 + 1?

Omni: [Object object]
Me: Okay Puts answer on homework

Solve this bug, please.

My portfolio
posted to Share by ironblockhd

It's very nice! (I think it kinda looks like a giant ipad)
The only issue I could say is it's a bit clunky, but a job well done!

Game Text
posted to Ask by GangstaPichu

Oh do you mean the typing effect? It's definitely possible, but instead of import os, use import sys.

For more information, check out this stack overflow:
https://stackoverflow.com/questions/20302331/typing-effect-in-python
I used it for my games when I was a newbie :)

⚡️DEVELOPER SPOTLIGHT #02:⚡️simontiger
posted to Announcements by katyadee

👏👏👏👏👏

What is the best first programming language?
posted to Ask by BjeezyCodes

Python! Python is one of the world's biggest languages, and even Google runs on it! Not only you can make terminal apps and games, you can make websites, AIs, machine learning, and more! Also, JavaScript wishes it could be as good as python. Python lets you do anything, and the syntax is easy!

Let's Compare:
console.log("Java is Better"); or alert()
print("Python is Better")

Java has a messy syntax (in my opinion), where all the tiny things yell out errors. Python is a more straight forward approach that is friendly for anyone. Recognizable functions such as input() and str() will help you know which command is which.

import time

time.sleep(4)
num = input("What is your favorite number?")
if num == 7:
  print("That's my favorite number too!")
else:
  print("Nice!")

JavaScript is optimized to make web applications, while Python is made for everything! Pygame, Flask, and much more.

Start learning Python today!

3 line calculator
posted to Share by SwaagatB

@SwaagatB Made it in 1 line:

while True: print(eval(input('\n')))
WebCraft - A Online Minecraft!
posted to Share by HENRYMARTIN4

@HENRYMARTIN4 No, I meant that it needs to be more creative like, with flying and all.

What do you call people who use Repl.it?
posted to Ask by Four_Of_Clubs

@RoylatGnail Idk I thought we were just coders too

Business Tycoon
posted to Ask by launcherman08

The Issue

On line 31 in game.py

commands_displ = colored("COMMANDS:

You are missing an end quote " and a end parenthesis )

Also, on line 1 in variable main_code:
You have a long string that has the save and load game functionality. This string is vulnerable to code errors, as Repl.it treats it like a string. Like how you made game.py, create a file called savegame.py and create functions for loading, saving, or deleting the save game.

edit: Hmmm..... It seems you were trying to create a multiline statement on line 31 in game.py. You must have forgotten to add 2 extra quotes to make it into a multiline. """This multiline statement is important for adding the extra line"""

There we go, the program is working!

The Conclusion

Now that everything is working again, we need to conclude what happened so we don't make that mistake again.

First, we need to use """ instead of ". """ creates a multiline string which can output in multiple lines. We could also use \n too.

multi = """
Hello World!
I am a multiline string!
What about you?
""" #multiline

print('Look Up,\nLook Down') #give a multiline

Output:

Look Up,
Look Down

Second, we shouldn't put all our code in a multiline string, as Repl can't detect code errors.

Third, we need to organize code into functions and classes which will help us understand the code. It's also nice to document it with #comments and """multilines""".

def load(): #loads savegame
    """
    This load function loads savegame.
    Very Important Piece of the Game.

    Some errors on line 10
    """
    #loading
    print('Loaded!') #show msg when complete
    q = 1/0 #hmmm..... this seems to return an error.

Did it help? Mark this as the correct answer

What language?
posted to Ask by mkhoi

Python!

Pychat
posted to Share by ebest

Maybe try to prevent impersonation by removing names like 'ebest'?

Battle of the tubers!
posted to Share by FreddieRockett

I chose T-Series :) [ T-Series' Power should be Bollywood music. ]

Root password for shell
posted to Ask by aksubacct

@21natzil Makes sense, who knows what we'll do with it?