Vyn
@Axrevyn
Better at 3D printing than all this programming nonsense.
I just need random, funny questions. Oddly specific, entirely irrelevant, weird wording, or just plain dumb, doesn't matter. Throw them at me
Best is
FloCal35 If I have more cheese it has more holes, if I have more holes I have less cheese. If we use the [I forgot which one] property in math... would that mean More cheese = Less cheese1 year ago
MrVoo How come everyone forgot about communist Shrek when the USSR fell? He was everyone's role model, and his personality was everyone's idea of perfection.
Also why do you want questions?1 year ago
0
BlackoutA quick escape-the-room kind text adventure game, and a successor to the first game I ever tried to make.
1
0
0
I need some humorous multiple-choice questions for my BrainF Human Worth Calculator (YES I ACTUALLY MIGHT FINISH THIS!)
Best one gets marked as answe
Bookie0 Check this out! :)
A few:
Do you have a mac, PC, Linux, or something else? If you don't have a mac I will come find you and kill you murder you...
How old are you? (Answer: Oh, because of your previous responses, I thought you were [user's age - 5].
Is cereal a soup?
Is a hotdog a sandwich?
If peanut butter wasn't called peanut butter what would it be called?
Good luck and have fun! :)
2 years ago
Evanlicious I love BrainF. Anyways, ask them this: "Are you a certified plumber in Brooklyn, or are you just a Mario-wannabe?" (Sorry if it's not that funny.)2 years ago
I have a small problem.
I'm attempting to add the contents of a list to a variable.
Example:
list = [1, 5, 14]
Add the contents of the list to a va
RYANTADIPARTHI Solution
you can use the sum keyword to perform this task. assign it to variable, and print it. It's a much easier way.
list = [1, 5, 14]
variable = sum(list)
print(variable)
like that.
That should work2 years ago
19wintersp You can sum a list by looping through it:
list = [1, 5, 14]
variable = 0
for item in list:
variable += item
print(variable) #output: 20
Python has a built-in version of this called sum:
list = [1, 5, 14]
variable = sum(list)
print(variable) #output: 20
`2 years ago
YuvanVighnesh what are you trying to achieve by putting those numbers as a list??
just do
or
2 years ago
The title basically sums up my problem.
I've finished printing, now I need to take input. Getting the input is easy, how do I actually do something wi
image
This code does nothing. What am I doing wrong?
https://repl.it/@Axrevyn/BrainF-HWC
Does Repl.it block virtual machines from accessing the site?
image
Coder100 Did you try to use an iframe?
Repl.it has a cors policy, so if you tried something like:
it won't work. Most websites don't.2 years ago
JBloves27 I think it just means that the site is like clogged. It's just being used so much2 years ago
RYANTADIPARTHI Sometimes this means it can't access the URL you try to reach. Or sometimes it just means you have to refresh.2 years ago
How do I print letters in this godforsaken language?
Bookie0 read this to undertand a bit!
Bascially, (from the site):
// You need to use https://copy.sh/brainfuck/ to run
// this code.
/** Using different cells to store different numeric values
Cell 1 = 70; Cell 2 = 80; Cell 3 = 30
These base values can then be incremented or decremented
to store ASCII values of the characters we need to print */
++++++++++ //Cell 1 = 70(To run the loop 10 times)
[
>+++++++ // Cell 1 = 7*10
>++++++++ // Cell 2 = 8*10
>+++ // Cell 3 = 3*10
+.--..++++++. // Printi2 years ago
realTronsi Hi, use . to print characters. it will print via ascii code depending on your current cell value. This is a great tutorial I used to learn BrainF before: https://gist.github.com/roachhd/dce54bec8ba55fb17d3a2 years ago
This isn't exactly a coding question, so I'll understand if this gets taken down.
Hey, for those who have built their own computers:
How much will a
RayhanADev Heya @Axrevyn
If you want to build a decent PC, set a budget of at least 1,000 dollars. Use PCPartsPicker to plan your build. It’s an amazing website that even gives you links to where you can buy your parts. I suggest building off of some design they already have. Wish you great luck!
~ Ray <32 years ago
I noticed some people have this... tag. I don't know what to call it.
image
What exactly does it mean?
SUHASTADIPARTH1 It means they had posted tutorials in the tutorials section and some people may have benefited from it.2 years ago
RYANTADIPARTHI It means they have tutorials and have been popular. These things are posts with tutorials, which is why they have content creator.2 years ago
god this was painful
Human Worth Calculator!
This is one of my greatest accomplishments. Not even joking. Blackout doesn't even come close to this. OrLOLCODE
rediar Government agencies actually have a worth on human life. Nice project, msut have been a pain to make in LOLCODE2 years ago
HarnamanKhaira I'm worth $528. That's a good thing right?
Screenshot 2020-10-30 at 3.08.43 PM2 years ago
image
image
stupid error.
I know it's line 6, and the error is with calling it a certain data type, because if I remove it...
image
...it works.
image
RYANTADIPARTHI It's because the line you're having trouble with is not considered a function as you are using it.2 years ago
image
In the screenshot, I'm trying to start an if/then statement with this expression, but it throws this error:
image
What's the error?
InvisibleOne You shouldn't have and, I'm pretty sure it's just 'an'
BOTH SAEM FIRST_ANSWER AN "YES", O RLY?
`2 years ago
This is a very strange problem that I have no idea how to solve. How is this variable undefined?
Screenshot 2020-10-08 at 8.39.22 AM
Screenshot 2020
Coder100 FIXED
last = "None"
while True:
op = input("Ans:"+str(last)+"\n\n [>>>>] ")
answer = 0 # use this so python knows which answer to define
if op[1] == "+":
answer = int(op[0]) + int(op[2]) # if python defined the answer in here, it wouldn't be able to be used outside of the if statement
print(answer)
last=answer
`2 years ago
Coder100 Hi fren!
send repl please :)
The thing is, answer is not defined because it is declared in the if statement, after you unindent, answer gets 'deleted', here's the fixed code:
answer = 0
if op[1] == "+"
answer = int(op[0]) + int(op[2])
print(answer)
`2 years ago
What are some really situational/obscure functions that Python has built-in?
Coder100 Ok, here are links to some obscure functions I would never use (or don't have a use for currently).
https://docs.python.org/3/library/functions.html#delattr
https://docs.python.org/3/library/functions.html#hash
https://docs.python.org/3/library/functions.html#func-memoryview
https://docs.python.org/3/library/functions.html#compile
https://docs.python.org/3/library/functions.html#complex2 years ago
Coder100 You can find all the functions here
Anyways, this is a really general question lol2 years ago
MocaCDeveloper Um I don't really know what you mean by that...
But, you have the int function that turns a string to an int, the list function for defining lists, the dict function for defining dictionaries.
For dictionaries you have the .get function to get a certain keys value.
You have the .update function to update dictionaries and the .append function to append something to a list.
You have the exec function, but I recommend not using it. All it does is execute Python code..which is kinda useless and c2 years ago
This should work, right? The exec() is within a loop...can someone explain why it doesn't work?
image
image
Coder100 no it doesn't
exec does not execute code like that, it looks more like this:
while True:
anonexecfunction():
break # this is the code you put in
anonexecfunction()
It does it this way because of security, and also for more functionality. If you are looking to break out of a loop, why not just do:
while True:
command = "break"
if command == 'break': break
`2 years ago
I do notice that there's a debugging option, but I don't really know how it works or what exactly it does.
What does it do? How do you use it?
Coder100 Only python has it, and honestly, it's not even that good, basically it just slows down the program so you can go line by line and 'debug' by seeing what the program is doing.2 years ago
Who is Nathan from Repl.it?
Is that an actual person? Or a bot?
I noticed that a person can mark any comment as their answer in an ask post.
image
In that screenshot, I could have marked Coder100's comment as the a
SixBeeps Yeah, if you end up finding the answer on your own, you can mark your own comment as the answer. You won't get 5 cycles for it tho lol.
The reason why it's there is because if someone else searches for your problem in the future, they'll see that there's an answer, and can find it worth their time to look at the post.2 years ago
I feel like I need a team.
I have no ideas of things to code, and the projects I do start on I abandon because of burnout - because they're too big f
tankerguy1917 I got a few projects I need help with. They aren't very big, or they don't need much done, mainly just making my def statements work. If you could help, I would appreciate it.2 years ago